Skip to content

Commit 0f641bd

Browse files
authored
Configure concurrency to cancel "In progress" actions (#41)
The styfle/cancel-workflow-action is no longer necessary to accomplish this nowadays. See: https://github.com/styfle/cancel-workflow-action
1 parent 59e7fcb commit 0f641bd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/ci_cd.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@ on:
1616
# Manual trigger
1717
workflow_dispatch:
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024

2125
build:
2226
name: CI/CD
2327
runs-on: ubuntu-latest
2428

2529
steps:
26-
27-
- name: Cancel previous runs
28-
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
29-
with:
30-
access_token: ${{ github.token }}
31-
3230
- name: Checkout
3331
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3432

0 commit comments

Comments
 (0)