Skip to content

Commit ab48c83

Browse files
authored
add styfle/cancel-workflow-action to github actions to cancel previous runs (#3755)
1 parent a929862 commit ab48c83

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/main-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12+
- name: Cancel Previous Runs
13+
uses: styfle/[email protected]
14+
with:
15+
access_token: ${{ github.token }}
1216
- name: Checkout Code
1317
uses: actions/checkout@v4
1418
- uses: actions/setup-node@v4

.github/workflows/pr-graphql-compat-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
release:
2727
['15.5.3', '^15.8.0', '16.1.0', '16.2.0', '16.3.0', '17.0.0-alpha.5']
2828
steps:
29+
- name: Cancel Previous Runs
30+
uses: styfle/[email protected]
31+
with:
32+
access_token: ${{ github.token }}
2933
- name: Checkout Code
3034
uses: actions/checkout@v4
3135

.github/workflows/pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12+
- name: Cancel Previous Runs
13+
uses: styfle/[email protected]
14+
with:
15+
access_token: ${{ github.token }}
1216
- name: Checkout Code
1317
uses: actions/checkout@v4
1418
- uses: actions/setup-node@v4

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
name: Release
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Cancel Previous Runs
16+
uses: styfle/[email protected]
17+
with:
18+
access_token: ${{ github.token }}
1519
- name: Checkout Code
1620
uses: actions/checkout@v4
1721
with:

0 commit comments

Comments
 (0)