Skip to content

Commit

Permalink
chore(ci): cancel redundant workflow runs (#12468)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 23, 2022
1 parent 491e7cb commit b284229
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/nodejs.yml
Expand Up @@ -8,15 +8,11 @@ on:
branches:
- '**'

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

jobs:
prepare-yarn-cache:
name: Prepare yarn cache
strategy:
Expand Down

0 comments on commit b284229

Please sign in to comment.