Skip to content

Commit

Permalink
ensure superceded PR workflows are cancelled
Browse files Browse the repository at this point in the history
Add a concurrency tag to the github actions config so it will cancel
pending workflows that are superceded by newer commits.
  • Loading branch information
trws committed Aug 8, 2023
1 parent 377eb65 commit 7884632
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
on: [ pull_request, push, workflow_dispatch ]
name: ci
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-pr:
name: validate commits
Expand Down

0 comments on commit 7884632

Please sign in to comment.