Skip to content

Commit

Permalink
Cancel concurrent builds for same commit/pr
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Feb 10, 2022
1 parent 8638510 commit 7f5c120
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: '${{ github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
tags:
- '*.*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: '${{ github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:

Expand Down

0 comments on commit 7f5c120

Please sign in to comment.