We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65d5482 commit df40984Copy full SHA for df40984
1 file changed
.github/workflows/ci.yml
@@ -1,7 +1,16 @@
1
name: CI
2
on:
3
- - push
4
- - pull_request
+ push:
+ branches: [master, main]
5
+ tags: ["*"]
6
+ pull_request:
7
+
8
+concurrency:
9
+ # group by workflow and ref; the last slightly strange component ensures that for pull
10
+ # requests, we limit to 1 concurrent job, but for the master branch we don't
11
+ group: ${{ github.workflow }}-${{ github.ref }}-${{ (github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main') || github.run_number }}
12
+ # Cancel intermediate builds, but only if it is a pull request build.
13
+ cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14
15
jobs:
16
test:
0 commit comments