File tree Expand file tree Collapse file tree 5 files changed +27
-13
lines changed Expand file tree Collapse file tree 5 files changed +27
-13
lines changed Original file line number Diff line number Diff line change 15
15
pull_request : {}
16
16
workflow_call : {} # allow this workflow to be called by other workflows
17
17
18
- concurrency :
19
- # On master/release, we don't want any jobs cancelled
20
- # On PR branches, we cancel the job if new commits are pushed
21
- # More info: https://stackoverflow.com/a/70972844/1261287
22
- group : ${{ github.ref }}-ci
23
- cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
24
-
25
18
jobs :
26
19
build :
27
20
strategy :
28
21
matrix :
29
22
java-version : [11, 17]
30
23
fail-fast : false
31
24
25
+ concurrency :
26
+ # On main/release, we don't want any jobs cancelled
27
+ # On PR branches, we cancel the job if new commits are pushed
28
+ # More info: https://stackoverflow.com/a/70972844/1261287
29
+ group : ${{ github.workflow }}-${{ github.github.ref }}-${{ matrix.java-version }}
30
+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
31
+
32
32
runs-on : ubuntu-latest
33
33
permissions :
34
34
id-token : write
Original file line number Diff line number Diff line change 1
1
name : Conformance Tests
2
2
3
3
on :
4
- push :
4
+ push :
5
5
branches : [main]
6
6
pull_request : {}
7
7
# TODO: add cron
15
15
sigstore-env : [production, staging]
16
16
fail-fast : false
17
17
18
+ concurrency :
19
+ # On main/release, we don't want any jobs cancelled
20
+ # On PR branches, we cancel the job if new commits are pushed
21
+ # More info: https://stackoverflow.com/a/70972844/1261287
22
+ group : ${{ github.workflow }}-${{ github.github.ref }}-${{ matrix.java-version }}
23
+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
24
+
18
25
runs-on : ubuntu-latest
19
26
steps :
20
27
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Original file line number Diff line number Diff line change 14
14
name : Build and run release examples on ${{ matrix.os }}
15
15
runs-on : ${{ matrix.os }}
16
16
concurrency :
17
- group : ${{ github.ref }}-${{ matrix.os }}-examples -release
18
- cancel-in-progress : ${{ github.ref != 'refs/heads/master ' }}
17
+ group : ${{ github.workflow }}-${{ github. ref }}-${{ matrix.os }}-release
18
+ cancel-in-progress : ${{ github.ref != 'refs/heads/main ' }}
19
19
20
20
permissions :
21
21
id-token : write
53
53
name : Build and run dev examples on ${{ matrix.os }}
54
54
runs-on : ${{ matrix.os }}
55
55
concurrency :
56
- group : ${{ github.ref }}-${{ matrix.os }}-examples -dev
57
- cancel-in-progress : ${{ github.ref != 'refs/heads/master ' }}
56
+ group : ${{ github.workflow }}-${{ github. ref }}-${{ matrix.os }}-dev
57
+ cancel-in-progress : ${{ github.ref != 'refs/heads/main ' }}
58
58
59
59
permissions :
60
60
id-token : write
Original file line number Diff line number Diff line change 1
1
name : " Validate Gradle Wrapper"
2
- on :
2
+ on :
3
3
push :
4
4
branches : [main]
5
5
pull_request : {}
Original file line number Diff line number Diff line change 15
15
java-version : [11, 17]
16
16
fail-fast : false
17
17
18
+ concurrency :
19
+ # On main/release, we don't want any jobs cancelled
20
+ # On PR branches, we cancel the job if new commits are pushed
21
+ # More info: https://stackoverflow.com/a/70972844/1261287
22
+ group : ${{ github.workflow }}-${{ github.github.ref }}-${{ matrix.java-version }}
23
+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
24
+
18
25
runs-on : ubuntu-latest
19
26
steps :
20
27
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
You can’t perform that action at this time.
0 commit comments