Skip to content

Commit

Permalink
Correctly specify branch to push to
Browse files Browse the repository at this point in the history
  • Loading branch information
mmwinther committed Nov 16, 2023
1 parent 146fbf1 commit 7b86c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -63,4 +63,4 @@ jobs:
uses: ad-m/[email protected]
with:
github_token: ${{ steps.generate_token.outputs.token }}
branch: ${{ github.ref }}
branch: ${{ github.head_ref }}

0 comments on commit 7b86c96

Please sign in to comment.