Skip to content

Commit a967f1f

Browse files
Copilotbarjin
andauthored
ci: replace styfle/cancel-workflow-action with native concurrency cancel-in-progress (#866)
Replaces the third-party `styfle/cancel-workflow-action` with GitHub Actions' built-in `concurrency` to cancel in-progress runs when a new one is triggered for the same ref. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: barjin <61918049+barjin@users.noreply.github.com>
1 parent e8008c3 commit a967f1f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/check.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
# Release flow will trigger checks manually
1616
workflow_call:
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
build_and_test:
2024
name: Build & Test
@@ -27,11 +31,6 @@ jobs:
2731
node-version: [18, 20, 22, 24]
2832

2933
steps:
30-
- name: Cancel Workflow Action
31-
uses: styfle/cancel-workflow-action@0.13.1
32-
with:
33-
access_token: ${{ github.token }}
34-
3534
- name: Checkout repository
3635
uses: actions/checkout@v6
3736

0 commit comments

Comments
 (0)