Skip to content

Commit b52bdaf

Browse files
authored
Only run CI on latest commit of PR branches (#1985)
1 parent 830c3b1 commit b52bdaf

23 files changed

+115
-0
lines changed

.github/workflows/base16ct.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717
CARGO_INCREMENTAL: 0
1818
RUSTFLAGS: "-Dwarnings"
1919

20+
# Cancels CI jobs when new commits are pushed to a PR branch
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
cancel-in-progress: true
24+
2025
jobs:
2126
build:
2227
runs-on: ubuntu-latest

.github/workflows/base32ct.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717
CARGO_INCREMENTAL: 0
1818
RUSTFLAGS: "-Dwarnings"
1919

20+
# Cancels CI jobs when new commits are pushed to a PR branch
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
cancel-in-progress: true
24+
2025
jobs:
2126
build:
2227
runs-on: ubuntu-latest

.github/workflows/base64ct.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717
CARGO_INCREMENTAL: 0
1818
RUSTFLAGS: "-Dwarnings"
1919

20+
# Cancels CI jobs when new commits are pushed to a PR branch
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
cancel-in-progress: true
24+
2025
jobs:
2126
build:
2227
runs-on: ubuntu-latest

.github/workflows/cmpv2.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ env:
2121
CARGO_INCREMENTAL: 0
2222
RUSTFLAGS: "-Dwarnings"
2323

24+
# Cancels CI jobs when new commits are pushed to a PR branch
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
28+
2429
jobs:
2530
build:
2631
runs-on: ubuntu-latest

.github/workflows/cms.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ env:
2121
CARGO_INCREMENTAL: 0
2222
RUSTFLAGS: "-Dwarnings"
2323

24+
# Cancels CI jobs when new commits are pushed to a PR branch
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
28+
2429
jobs:
2530
build:
2631
runs-on: ubuntu-latest

.github/workflows/const-oid.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717
CARGO_INCREMENTAL: 0
1818
RUSTFLAGS: "-Dwarnings"
1919

20+
# Cancels CI jobs when new commits are pushed to a PR branch
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
cancel-in-progress: true
24+
2025
jobs:
2126
build:
2227
runs-on: ubuntu-latest

.github/workflows/crmf.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ env:
2121
CARGO_INCREMENTAL: 0
2222
RUSTFLAGS: "-Dwarnings"
2323

24+
# Cancels CI jobs when new commits are pushed to a PR branch
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
28+
2429
jobs:
2530
build:
2631
runs-on: ubuntu-latest

.github/workflows/der.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ env:
1919
CARGO_INCREMENTAL: 0
2020
RUSTFLAGS: "-Dwarnings"
2121

22+
# Cancels CI jobs when new commits are pushed to a PR branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build:
2429
runs-on: ubuntu-latest

.github/workflows/gss-api.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ env:
2121
CARGO_INCREMENTAL: 0
2222
RUSTFLAGS: "-Dwarnings"
2323

24+
# Cancels CI jobs when new commits are pushed to a PR branch
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
28+
2429
jobs:
2530
build:
2631
runs-on: ubuntu-latest

.github/workflows/pem-rfc7468.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ env:
1818
CARGO_INCREMENTAL: 0
1919
RUSTFLAGS: "-Dwarnings"
2020

21+
# Cancels CI jobs when new commits are pushed to a PR branch
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
24+
cancel-in-progress: true
25+
2126
jobs:
2227
build:
2328
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)