Skip to content

Commit

Permalink
Do not push if pull request (needs to be a push to the branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
exetico committed Oct 26, 2024
1 parent 6260f12 commit 388e81b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
JSON: ${{ toJSON(github) }}

- name: Push changes to target branch
if: (contains(steps.can_commit.outputs.commit_result, 'nothing to commit') == false)
if: (contains(steps.can_commit.outputs.commit_result, 'nothing to commit') == false) && (github.event_name == 'push')
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name }}
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name }}

0 comments on commit 388e81b

Please sign in to comment.