Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GHA] Set concurrency groups for automerge and registry consistency jobs #122059

Merged
merged 3 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: AutoMerge

on:
pull_request:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
Expand All @@ -11,6 +12,7 @@ on:
# We will choose to run the fallback job every 4 hours.
- cron: '0 */4 * * *'
workflow_dispatch:

env:
JULIA_PKG_USE_CLI_GIT: true
# We only need the merging token
Expand All @@ -19,6 +21,13 @@ env:
# See also the same logic inside RegistryCI:
# https://github.com/JuliaRegistries/RegistryCI.jl/blob/ee1d7cdb165202f4f3929a122c3188fbdd7afc16/src/AutoMerge/ciservice.jl#L53-L67
NEED_MERGE_TOKEN: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
giordano marked this conversation as resolved.
Show resolved Hide resolved
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
giordano marked this conversation as resolved.
Show resolved Hide resolved

jobs:
AutoMerge:
# Run if:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/registry-consistency-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Registry Consistency

on:
pull_request:
branches:
Expand All @@ -7,10 +8,19 @@ on:
branches:
- master
workflow_dispatch:

env:
JULIA_PKG_USE_CLI_GIT: true

permissions:
contents: read

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
giordano marked this conversation as resolved.
Show resolved Hide resolved
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
giordano marked this conversation as resolved.
Show resolved Hide resolved

jobs:
check:
runs-on: ${{ matrix.os }}
Expand Down
Loading