Skip to content

Commit 6e5e7ab

Browse files
committed
ci-azure - Skip the Azure runner matrix on Dependabot PRs
Dependabot bumps only touch action pins, and the earlier fixes (#10566, 53ea454) gated azure-migration-tests instead of ci-azure, which is the workflow that actually acquires the Azure VMSS pools and went red on #10663. Gate authorize (every matrix job needs it) and the supersede helper on the actor, the same way azure-migration-tests already does. (do Get-DbaBuild) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mye3A1CnBn1pnEQnFEE7Ze
1 parent 63a9dee commit 6e5e7ab

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci-azure-supersede.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ concurrency:
3333
jobs:
3434
supersede:
3535
# Fork PRs get a read-only token that cannot cancel runs; their lanes keep FIFO.
36-
if: github.event.pull_request.head.repo.full_name == github.repository
36+
# Dependabot PRs never start a ci-azure run, so there is nothing to supersede.
37+
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
3738
runs-on: ubuntu-latest
3839
timeout-minutes: 3
3940
steps:

.github/workflows/ci-azure.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ env:
7474

7575
jobs:
7676
authorize:
77+
# Dependabot only ever bumps action pins, and its runs get no repository secrets.
78+
# Every job below depends on authorize, so skipping it here keeps the whole matrix
79+
# off the Azure runner pools. azure-migration-tests already skips the same way; the
80+
# earlier attempts at this only patched that file, which is why it kept firing.
81+
if: github.actor != 'dependabot[bot]'
7782
runs-on: ubuntu-latest
7883
timeout-minutes: 2
7984
outputs:

0 commit comments

Comments
 (0)