Skip to content

Commit

Permalink
fix(ci): cancel docker-unified workflow only on PRs on new commits (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Aug 10, 2022
1 parent fedf451 commit 581765d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-unified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ on:
types: [published, edited]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# Using `github.run_id` (unique val) instead of `github.ref` here
# because we don't want to cancel this workflow on master only for PRs
# as that makes reproducing issues easier
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

env:
Expand Down

0 comments on commit 581765d

Please sign in to comment.