Skip to content

Commit b763143

Browse files
committed
End the current execution if there is a new changeset in the PR
1 parent 9fdce97 commit b763143

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/CICD.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ on: [push, pull_request]
2020
permissions:
2121
contents: read # to fetch code (actions/checkout)
2222

23+
# End the current execution if there is a new changeset in the PR.
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
27+
2328
jobs:
2429
cargo-deny:
2530
name: Style/cargo-deny

.github/workflows/GnuTests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on: [push, pull_request]
1414
permissions:
1515
contents: read
1616

17+
# End the current execution if there is a new changeset in the PR.
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
21+
1722
jobs:
1823
gnu:
1924
permissions:

0 commit comments

Comments
 (0)