Skip to content

Commit b284229

Browse files
authored
chore(ci): cancel redundant workflow runs (#12468)
1 parent 491e7cb commit b284229

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ on:
88
branches:
99
- '**'
1010

11-
jobs:
12-
cleanup-runs:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: rokroskar/workflow-run-cleanup-action@master
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
1914

15+
jobs:
2016
prepare-yarn-cache:
2117
name: Prepare yarn cache
2218
strategy:

0 commit comments

Comments
 (0)