Skip to content

Commit d1cd064

Browse files
authored
Merge pull request #252 from ksikka/test-ci-sec
CI: cancel previous build on push
2 parents 369f475 + 3614a99 commit d1cd064

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
pull_request:
66
types: [opened, synchronize, reopened]
77

8+
# To cancel a currently running workflow from the same PR, branch or tag when a new workflow is triggered
9+
# https://stackoverflow.com/a/72408109
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
814
jobs:
915
build:
1016
runs-on: self-hosted

0 commit comments

Comments
 (0)