Skip to content

Commit

Permalink
cancel-pr-actions-on-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
remal committed Oct 1, 2024
1 parent 7a2b53f commit d4b7d58
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cancel-pr-actions-on-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Cancel PR actions on merge

on:
pull_request:
types:
- closed
- merged

permissions:
pull-requests: 'read'
checks: 'read'
actions: 'write'

jobs:
cancel-pr-actions-on-merge:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Cancel PR actions on merge
uses: remal-github-actions/cancel-pr-actions@v1

0 comments on commit d4b7d58

Please sign in to comment.