Skip to content

Commit 2b41f29

Browse files
authored
update gh action concurrency (#952)
* update gh action concurrency * update
1 parent b35ca1d commit 2b41f29

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

.github/workflows/coverage.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@ on:
1616
env:
1717
TARPAULIN_VERSION: 0.19.1
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
test:
2125
name: Coverage Report
2226
runs-on: [self-hosted]
2327
steps:
24-
- name: Cancel Previous Runs
25-
# Only cancel non-master branch runs
26-
if: ${{ github.ref != 'refs/heads/master' }}
27-
uses: styfle/[email protected]
28-
with:
29-
access_token: ${{ github.token }}
3028
- name: Checkout repository
3129
uses: actions/checkout@v3
3230
with:

.github/workflows/test.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,15 @@ on:
1414
paths-ignore:
1515
- '**/README.md'
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
18-
cancel:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Cancel Previous Runs
22-
# Only cancel non-master branch runs
23-
if: ${{ github.ref != 'refs/heads/master' }}
24-
uses: styfle/[email protected]
25-
with:
26-
access_token: ${{ github.token }}
2722
build:
2823
runs-on: [self-hosted]
2924
env:
30-
SCCACHE_CACHE_SIZE: "50G"
31-
needs: cancel
25+
SCCACHE_CACHE_SIZE: "60G"
3226
steps:
3327
- uses: actions/checkout@v3
3428
- name: Install toolchain

0 commit comments

Comments
 (0)