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 1515 pull_request : {}
1616 workflow_call : {} # allow this workflow to be called by other workflows
1717
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-
2518jobs :
2619 build :
2720 strategy :
2821 matrix :
2922 java-version : [11, 17]
3023 fail-fast : false
3124
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+
3232 runs-on : ubuntu-latest
3333 permissions :
3434 id-token : write
Original file line number Diff line number Diff line change 11name : Conformance Tests
22
33on :
4- push :
4+ push :
55 branches : [main]
66 pull_request : {}
77 # TODO: add cron
1515 sigstore-env : [production, staging]
1616 fail-fast : false
1717
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+
1825 runs-on : ubuntu-latest
1926 steps :
2027 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Original file line number Diff line number Diff line change 1414 name : Build and run release examples on ${{ matrix.os }}
1515 runs-on : ${{ matrix.os }}
1616 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 ' }}
1919
2020 permissions :
2121 id-token : write
5353 name : Build and run dev examples on ${{ matrix.os }}
5454 runs-on : ${{ matrix.os }}
5555 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 ' }}
5858
5959 permissions :
6060 id-token : write
Original file line number Diff line number Diff line change 11name : " Validate Gradle Wrapper"
2- on :
2+ on :
33 push :
44 branches : [main]
55 pull_request : {}
Original file line number Diff line number Diff line change 1515 java-version : [11, 17]
1616 fail-fast : false
1717
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+
1825 runs-on : ubuntu-latest
1926 steps :
2027 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
You can’t perform that action at this time.
0 commit comments