Skip to content

Commit

Permalink
make create-pull-request use a custom branch, and filter that out, so…
Browse files Browse the repository at this point in the history
… PRs generated by action don't invoke action again
  • Loading branch information
Scroogey-SN committed Mar 2, 2025
1 parent e0ebd2f commit 82dae0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/extend-awards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ on:
- master
jobs:
if_merged:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
if: |
github.event_name == 'pull_request' &&
github.event.action == 'closed' &&
github.event.pull_request.merged == true &&
github.event.pull_request.head.ref != 'extend-awards/patch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -22,6 +26,7 @@ jobs:
- uses: peter-evans/create-pull-request@v7
with:
add-paths: awards.csv
branch: extend-awards/patch
commit-message: Extending awards.csv
title: Extending awards.csv
body: A PR was merged that solves an issue and awards.csv should be extended.

0 comments on commit 82dae0c

Please sign in to comment.