Skip to content

Commit 1be6c16

Browse files
author
merge-queue-bot
committed
Merge PR #717: ci(merge-queue): only run queue job when the queue label is added
2 parents 249f5c9 + dd46c36 commit 1be6c16

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/merge-queue.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ permissions:
2424

2525
jobs:
2626
queue:
27+
# Only engage the merge-queue action when the `queue` label is the one
28+
# being added (or on manual dispatch). Firing on any label makes the job
29+
# run for routine labels like Dependabot's `dependencies`/`go`, where
30+
# secrets.MERGE_QUEUE_TOKEN is withheld from the run and the action fails
31+
# with "Input required and not supplied: token". Guarding on the label
32+
# name skips those events cleanly instead of failing on the absent token.
33+
if: >-
34+
github.event_name == 'workflow_dispatch' ||
35+
github.event.label.name == 'queue'
2736
runs-on: ubuntu-latest
2837
steps:
2938
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)