Skip to content

Commit c9ad976

Browse files
committed
[GHA] Set concurrency groups for automerge and registry consistency jobs
1 parent e6ba5ee commit c9ad976

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/automerge.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: AutoMerge
2+
23
on:
34
pull_request:
45
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
@@ -11,6 +12,7 @@ on:
1112
# We will choose to run the fallback job every 4 hours.
1213
- cron: '0 */4 * * *'
1314
workflow_dispatch:
15+
1416
env:
1517
JULIA_PKG_USE_CLI_GIT: true
1618
# We only need the merging token
@@ -19,6 +21,13 @@ env:
1921
# See also the same logic inside RegistryCI:
2022
# https://github.com/JuliaRegistries/RegistryCI.jl/blob/ee1d7cdb165202f4f3929a122c3188fbdd7afc16/src/AutoMerge/ciservice.jl#L53-L67
2123
NEED_MERGE_TOKEN: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
24+
25+
concurrency:
26+
# Skip intermediate builds: always.
27+
# Cancel intermediate builds: always.
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: true
30+
2231
jobs:
2332
AutoMerge:
2433
# Run if:

.github/workflows/registry-consistency-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Registry Consistency
2+
23
on:
34
pull_request:
45
branches:
@@ -7,10 +8,19 @@ on:
78
branches:
89
- master
910
workflow_dispatch:
11+
1012
env:
1113
JULIA_PKG_USE_CLI_GIT: true
14+
1215
permissions:
1316
contents: read
17+
18+
concurrency:
19+
# Skip intermediate builds: always.
20+
# Cancel intermediate builds: always.
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
1424
jobs:
1525
check:
1626
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)