Skip to content

Commit d5d11f0

Browse files
committed
wip
1 parent 36475bc commit d5d11f0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: cancel-previous-builds.yml
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
# https://docs.github.com/en/actions/learn-github-actions/expressions
11+
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
12+
concurrency:
13+
# Use github.run_id on main branch
14+
# Use github.event.pull_request.number on pull requests, so it's unique per pull request
15+
# Use github.ref on other branches, so it's unique per branch
16+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/github.ref_protected' && github.run_id || github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true

0 commit comments

Comments
 (0)