From d6b125b25ec100b4580bb8bfc667498bc0e73f0c Mon Sep 17 00:00:00 2001 From: Cayan <1619617+Cayan@users.noreply.github.com> Date: Tue, 10 Nov 2026 12:04:16 -0300 Subject: [PATCH] fix the report follower trigger after the workflow rename The `workflows:` filter of the workflow_run trigger matches on the workflow `name:` only. The rename made the producer "[PR] Unit testing (job #1)" while the follower still listened for "Unit testing", so the follower never ran again (PR #92 got no report, comment, or check annotations). The follower now listens for the new name, a comment above the trigger warns about the name-based coupling, and the stale name in the producer's own comment is updated. --- .github/workflows/pr-test-report.yml | 5 ++++- .github/workflows/pr-unit-test.yml | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-test-report.yml b/.github/workflows/pr-test-report.yml index 71396ff..122a60c 100644 --- a/.github/workflows/pr-test-report.yml +++ b/.github/workflows/pr-test-report.yml @@ -2,7 +2,10 @@ name: "[PR] Testing report (job #2)" on: workflow_run: - workflows: ["Unit testing"] + # GitHub matches this list on the workflow `name:` only. It must equal the + # name in pr-unit-test.yml; a rename there without a change here silently + # stops this follower from ever running. + workflows: ["[PR] Unit testing (job #1)"] types: [completed] permissions: {} diff --git a/.github/workflows/pr-unit-test.yml b/.github/workflows/pr-unit-test.yml index 959bca7..f94cf7a 100644 --- a/.github/workflows/pr-unit-test.yml +++ b/.github/workflows/pr-unit-test.yml @@ -91,10 +91,10 @@ jobs: timeout-minutes: 10 run: sudo env "PATH=$PATH" gotestsum --format standard-verbose --junitfile report.xml -- ./... -v -cover - # The report is published by the "Unit testing report" workflow (workflow_run - # follower), which runs on the base repository's context. This job executes - # untrusted PR code, so it keeps a read-only token, no persisted credentials, - # and no secrets; the artifact is the only thing it hands over. + # The report is published by the "[PR] Testing report (job #2)" workflow + # (workflow_run follower), which runs on the base repository's context. This + # job executes untrusted PR code, so it keeps a read-only token, no persisted + # credentials, and no secrets; the artifact is the only thing it hands over. - name: Upload junit report artifact if: always() uses: actions/upload-artifact@v7