Skip to content

Commit 0268f99

Browse files
authored
Merge pull request #986 from sigstore/master-to-main
use main on concurrency checks
2 parents bb515a8 + fdb5f53 commit 0268f99

File tree

5 files changed

+27
-13
lines changed

5 files changed

+27
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ on:
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-
2518
jobs:
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

.github/workflows/conformance.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Conformance Tests
22

33
on:
4-
push:
4+
push:
55
branches: [main]
66
pull_request: {}
77
# TODO: add cron
@@ -15,6 +15,13 @@ jobs:
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

.github/workflows/examples.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
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
@@ -53,8 +53,8 @@ jobs:
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

.github/workflows/gradle-wrapper-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Validate Gradle Wrapper"
2-
on:
2+
on:
33
push:
44
branches: [main]
55
pull_request: {}

.github/workflows/tuf-conformance.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
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

0 commit comments

Comments
 (0)