synchronize PR #52 - Abort the run when a git/gh command fails unexpectedly #146
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update PR Stack | |
| run-name: "${{ github.event.action }} PR #${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}" | |
| on: | |
| pull_request: | |
| types: [closed, synchronize] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| # Serialize runs per PR: the push that finishes a conflict resolution fires a | |
| # synchronize event while the conflict label is still attached, so without a | |
| # group the follow-up run races the one that triggered it. | |
| concurrency: | |
| group: update-pr-stack-${{ github.event.pull_request.number }} | |
| cancel-in-progress: false | |
| jobs: | |
| update-pr-stack: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: Phlogistique/autorestack-action@main | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |