Skip to content

ci: explicitly dispatch build-rpm.yml instead of relying on push - #46

Merged
edmundlod merged 1 commit into
mainfrom
fix/dispatch-rpm-workflow-trigger
Sep 16, 2026
Merged

edmundlod merged 1 commit into
mainfrom
fix/dispatch-rpm-workflow-trigger

Conversation

@edmundlod

Copy link
Copy Markdown
Owner

Summary

Discovered while re-cutting the v4.6.0 release: dispatch-packaging.yml pushes the rebuilt rpm branch using the default GITHUB_TOKEN. GitHub doesn't let events triggered by GITHUB_TOKEN cascade into triggering other workflows (an anti-loop guard), so build-rpm.yml's push: branches: [rpm] trigger never actually fired from that automated push. The only reason v4.6.0 got an RPM asset at all is that I pushed to rpm manually with my own credentials, twice, working around this.

Fix: give the job actions: write, and after pushing, explicitly call gh workflow run build-rpm.yml --ref rpm — an explicit API dispatch isn't subject to the same restriction. Companion change (already pushed directly to rpm, not part of this PR): build-rpm.yml now also declares a workflow_dispatch trigger, which is required for it to be dispatchable this way.

Test plan

  • Manually dispatched build-rpm.yml via gh workflow run --ref rpm after adding its workflow_dispatch trigger — succeeded, produced the v4.6.0 release asset
  • Verify on the next tagged release that the full automated chain (tag push → dispatch-packaging.yml → build-rpm.yml) completes without manual intervention

Pushes made with the default GITHUB_TOKEN don't trigger other
workflows (GitHub's anti-loop guard on Actions-authored events), so
dispatch-packaging.yml's push to rpm never actually fired
build-rpm.yml — the v4.6.0 release only got its RPM asset because it
was pushed manually with a personal credential, twice.

Add actions:write permission and an explicit `gh workflow run
build-rpm.yml --ref rpm` step after the push. Companion fix: rpm's
build-rpm.yml now declares a workflow_dispatch trigger so this
dispatch is possible (pushed directly to rpm already).
@edmundlod
edmundlod merged commit c4b7a4d into main Sep 16, 2026
5 checks passed
@edmundlod
edmundlod deleted the fix/dispatch-rpm-workflow-trigger branch September 16, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant