Skip to content

Commit

Permalink
Add cancel-in-progress so PR builds do not wait stale jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  • Loading branch information
vlsi committed Sep 12, 2022
1 parent abca981 commit 4deaf73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ on:
branches: [ main ]
workflow_call: # allow this workflow to be called by other workflows

concurrency:
# On master/release, we don't want any jobs cancelled
# On PR branches, we cancel the job if new commits are pushed
# More info: https://stackoverflow.com/a/70972844/1261287
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
build:
strategy:
Expand Down

0 comments on commit 4deaf73

Please sign in to comment.