From d972e6f23d641554ad0be467b3b1197e3ec8716d Mon Sep 17 00:00:00 2001 From: askalf <263217947+askalf@users.noreply.github.com> Date: Sun, 1 Nov 2026 21:16:23 -0500 Subject: [PATCH] fleet-status: run on a label event only for the verified label The lanes read one label, verified; any other label event ran a status job that posted nothing new, and a Dependabot PR fires two as it opens. Moves the askalf/ci pins to 84d68a0 (askalf/ci#159), whose checker requires the filter. --- .github/workflows/fleet-status-backfill.yml | 2 +- .github/workflows/fleet-status-self-test.yml | 2 +- .github/workflows/fleet-status.yml | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fleet-status-backfill.yml b/.github/workflows/fleet-status-backfill.yml index 85332d6..ec1aff5 100644 --- a/.github/workflows/fleet-status-backfill.yml +++ b/.github/workflows/fleet-status-backfill.yml @@ -21,6 +21,6 @@ jobs: checks: read statuses: write steps: - - uses: askalf/ci/actions/fleet-status@4365d12f956b60e795b5b55451e2035549a3600c # main 2026-11-01, askalf/ci#153 + - uses: askalf/ci/actions/fleet-status@84d68a04c25cbc7c50598b05476293c4ae00a898 # main 2026-11-02, askalf/ci#159 with: all-open: 'true' diff --git a/.github/workflows/fleet-status-self-test.yml b/.github/workflows/fleet-status-self-test.yml index 190932c..b306726 100644 --- a/.github/workflows/fleet-status-self-test.yml +++ b/.github/workflows/fleet-status-self-test.yml @@ -28,6 +28,6 @@ jobs: with: persist-credentials: false - - uses: askalf/ci/actions/fleet-status-check@cf3327ecdb3de75efa601181bd5ca91c2e17ec2a # main 2026-11-02, askalf/ci#157 + - uses: askalf/ci/actions/fleet-status-check@84d68a04c25cbc7c50598b05476293c4ae00a898 # main 2026-11-02, askalf/ci#159 with: min-own-exprs: '5' diff --git a/.github/workflows/fleet-status.yml b/.github/workflows/fleet-status.yml index fc6908d..1b25225 100644 --- a/.github/workflows/fleet-status.yml +++ b/.github/workflows/fleet-status.yml @@ -45,6 +45,8 @@ jobs: # issue_comment fires for issues too; only PR comments matter. The script re-checks it. # A comment starts a run only when it can change a status: a verification comment, an edit # away from one, or its deletion. + # Of the labels, the lanes read only `verified`, so a label added or removed runs the job only + # when it is that one (a Dependabot PR adds two others as it opens). if: >- (github.event_name == 'issue_comment' && github.event.issue.pull_request != null && (startsWith(github.event.comment.body, '## Verification at') || @@ -56,7 +58,9 @@ jobs: (contains(fromJSON('["pull_request","pull_request_target","pull_request_review"]'), github.event.workflow_run.event) && github.event.workflow_run.head_repository.full_name != github.repository))) || (github.event_name != 'issue_comment' && github.event_name != 'workflow_run' && - github.event.pull_request.head.repo.full_name == github.repository) + github.event.pull_request.head.repo.full_name == github.repository && + (!contains(fromJSON('["labeled","unlabeled"]'), github.event.action) || + github.event.label.name == 'verified')) # On our runner for every event, a fork's included: the job runs the pinned fleet-status action # and never PR code (see above), so GitHub's hosted queue going down does not hold the fleet/verify # and fleet/review statuses a merge waits on. The runner is this repository's fleet status row @@ -71,7 +75,7 @@ jobs: checks: read statuses: write steps: - - uses: askalf/ci/actions/fleet-status@4365d12f956b60e795b5b55451e2035549a3600c # main 2026-11-01, askalf/ci#153 + - uses: askalf/ci/actions/fleet-status@84d68a04c25cbc7c50598b05476293c4ae00a898 # main 2026-11-02, askalf/ci#159 with: pr: ${{ github.event.pull_request.number || github.event.issue.number || github.event.workflow_run.pull_requests[0].number }} head-repo: ${{ github.event.workflow_run.head_repository.full_name }}