Skip to content

Commit d447d13

Browse files
committed
cancel workflows runs that are in progress
1 parent 05025fd commit d447d13

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

perl-module-macos.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# brian's standard GitHub Actions macOS config for Perl 5 modules
2-
# version 20240709.001
2+
# version 20240731.001
33
# https://github.com/briandfoy/github_workflows
44
# https://github.com/features/actions
55
# This file is licensed under the Artistic License 2.0
@@ -14,6 +14,11 @@ name: macos
1414
env:
1515
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1616

17+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-concurrency
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
20+
cancel-in-progress: true
21+
1722
on:
1823
push:
1924
branches:

perl-module-ubuntu.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# brian's standard GitHub Actions Ubuntu config for Perl 5 modules
2-
# version 20240709.001
2+
# version 20240731.001
33
# https://github.com/briandfoy/github_workflows
44
# https://github.com/features/actions
55
# This file is licensed under the Artistic License 2.0
@@ -14,6 +14,11 @@ name: ubuntu
1414
env:
1515
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1616

17+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-concurrency
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
20+
cancel-in-progress: true
21+
1722
on:
1823
push:
1924
branches:

perl-module-windows.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# brian's standard GitHub Actions Windows config for Perl 5 modules
2-
# version 20240709.001
2+
# version 20240731.001
33
# https://github.com/briandfoy/github_workflows
44
# https://github.com/features/actions
55
# This file is licensed under the Artistic License 2.0
@@ -14,6 +14,11 @@ name: windows
1414
env:
1515
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1616

17+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-concurrency
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
20+
cancel-in-progress: true
21+
1722
on:
1823
push:
1924
branches:

0 commit comments

Comments
 (0)