Skip to content

Commit

Permalink
[CI] Fix concurrency group for automerge jobs (#122409)
Browse files Browse the repository at this point in the history
* [CI] Move concurrency group inside automerge job
  • Loading branch information
giordano authored Jan 4, 2025
1 parent d99b559 commit 783da69
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ env:
# 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: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
AutoMerge:
# Run if:
Expand All @@ -40,6 +34,11 @@ jobs:
if: "${{ github.event_name != 'pull_request' || (github.repository == github.event.pull_request.head.repo.full_name && (github.event.action != 'labeled' || (github.event.action == 'labeled' && (github.event.label.name == 'Override AutoMerge: name similarity is okay' || github.event.label.name == 'Override AutoMerge: package author approved')))) }}"
timeout-minutes: 60
runs-on: ${{ matrix.os }}
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only pull request builds
group: automerge-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
strategy:
matrix:
version:
Expand Down

0 comments on commit 783da69

Please sign in to comment.