Skip to content

fix: dispatch the release workflow after a trusted merge - #18

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/13-release-dispatch
Sep 3, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/13-release-dispatch

Conversation

@Yash-Chindam

@Yash-Chindam Yash-Chindam commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • PR ci: tag and release main from Conventional Commits #17 added a Release workflow but it never actually fired after merging: it only had a workflow_run: [CI] trigger, and this repo's merges are performed by auto-merge.yml using GITHUB_TOKEN. GitHub deliberately does not let GITHUB_TOKEN-authored pushes trigger further push-triggered workflow runs (to avoid recursive runs), so CI never reports a push event for a merge commit here — confirmed by gh run list --workflow=CI, which shows every run as pull_request, never push.
  • cd.yml already works around exactly this by also declaring a workflow_dispatch input and having auto-merge.yml call gh workflow run cd.yml --ref main -f ref=<merge sha> right after merging. Applies the identical fix to release.yml and adds the matching dispatch call in auto-merge.yml.
  • The workflow_run trigger is kept as a harmless belt-and-suspenders path, matching cd.yml's existing style.

Test plan

  • ruff format --check .
  • ruff check .
  • mypy
  • YAML-validated both workflow files
  • After this merges, manually dispatch release.yml once to bootstrap the repo's first tag/release and confirm the pipeline end-to-end (no further feat/fix PR is queued to exercise the automatic path yet)

release.yml's workflow_run trigger never actually fires here: merges are
performed by auto-merge.yml using GITHUB_TOKEN, and GitHub deliberately
does not let GITHUB_TOKEN pushes trigger further push-triggered workflow
runs, so CI never reports a push event for a merge commit (the same
reason cd.yml already carries a workflow_dispatch fallback and
auto-merge.yml dispatches it explicitly). Give release.yml the matching
workflow_dispatch input and dispatch it the same way.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions
github-actions Bot merged commit b4157f8 into main Sep 3, 2026
6 checks passed
@github-actions
github-actions Bot deleted the feat/13-release-dispatch branch September 3, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant