Skip to content

Commit

Permalink
fix: cancel in-progress actions on new ones arrived
Browse files Browse the repository at this point in the history
  • Loading branch information
akamfoad committed Sep 10, 2023
1 parent a46ca7f commit 68a32f4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI
on: [push]
concurrency:
group: "CI"
cancel-in-progress: true

jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: Release
on:
release:
types: [created]
concurrency:
group: "Release"
cancel-in-progress: true

jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: size
on: [pull_request]
concurrency:
group: "size"
cancel-in-progress: true

jobs:
size:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 68a32f4

Please sign in to comment.