Skip to content

Commit de62487

Browse files
committed
Add concurrency configuration
This will cancel in-progress workflows if a PR is updated (i.e., a new commit is pushed) and the same workflows are triggered to run again. This reduces unnecessary compute time.
1 parent bd64bda commit de62487

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
pull_request:
44
branches: [main]
55

6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
610
jobs:
711
test:
812
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)