We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36475bc commit d5d11f0Copy full SHA for d5d11f0
.github/workflows/cancel-previous-builds.yml
@@ -0,0 +1,17 @@
1
+name: cancel-previous-builds.yml
2
+on:
3
+ push:
4
+ branches:
5
+ - '*'
6
+ pull_request:
7
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