From 7b86c96a01ef45ce63d42c71e080651678a9a7be Mon Sep 17 00:00:00 2001 From: mmwinther Date: Thu, 16 Nov 2023 10:43:48 +0100 Subject: [PATCH] Correctly specify branch to push to --- .github/workflows/generate-python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-python.yml b/.github/workflows/generate-python.yml index ddc5ba2e..92db69bb 100644 --- a/.github/workflows/generate-python.yml +++ b/.github/workflows/generate-python.yml @@ -51,7 +51,7 @@ jobs: - name: Check for modified files id: git-check - run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi) + run: echo modified=$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi) >> $GITHUB_OUTPUT - name: Commit if: steps.git-check.outputs.modified == 'true' @@ -63,4 +63,4 @@ jobs: uses: ad-m/github-push-action@v0.8.0 with: github_token: ${{ steps.generate_token.outputs.token }} - branch: ${{ github.ref }} + branch: ${{ github.head_ref }}