The merge step uses GITHUB_TOKEN, which means the resulting push to main
is attributed to github-actions[bot]. GitHub suppresses workflow runs
for events triggered by GITHUB_TOKEN, so release.yml (on: push: main)
does not fire after the auto-merge — chart-releaser never runs.
Hit on 2026-05-27 with the lunar-2.2.1 bump: PR #52 merged cleanly but
release.yml had to be retriggered via an empty commit on main.
Swapping to LUNAR_DIST_GITHUB_TOKEN (already used in earthly/lunar's
release.yml to dispatch this workflow) attributes the merge to that
token's owner, which does fire downstream workflows.
Problem
The auto-merge step in this workflow uses
secrets.GITHUB_TOKEN. GitHub attributes the resulting push togithub-actions[bot]and suppresses downstream workflow triggers for any event originating fromGITHUB_TOKEN— sorelease.yml(on: push: branches: [main]) does not fire when this workflow auto-merges its bump PR.This was the exact failure mode that hit
lunar-2.2.1(2026-05-27): PR #52 merged at 21:33Z, butchart-releasernever ran. The release had to be unblocked with a manual empty commit tomain.Fix
Swap the
GH_TOKENenv fromsecrets.GITHUB_TOKENtosecrets.LUNAR_DIST_GITHUB_TOKEN. The latter is the same tokenearthly/lunar'srelease.ymluses to dispatch this workflow in the first place — when it pushes a merge commit, the actor is the token owner (notgithub-actions[bot]), andon: pushworkflows fire normally.A brief YAML comment is added above the env var so the next person to touch this doesn't reset it back to the obvious-looking
GITHUB_TOKEN.Prerequisite
LUNAR_DIST_GITHUB_TOKENneeds to be present as an Actions secret in this repo withrepo(or at minimumcontents: write+pull-requests: write) scope. If it's already configured inearthly/chartssecrets the change is no-op; if not, it needs to be added before the nextlunar-hub-v*tag, or the bump workflow will fail at the push step.@brandonSc — can you confirm whether the secret is already there? If not, mirror whatever's in
earthly/lunarActions secrets.Test plan
LUNAR_DIST_GITHUB_TOKENexists inearthly/chartsActions secrets (or add it)lunar-hub-v*tag → bump workflow runs → auto-merge happens →release.ymlfires on the merge push without manual interventionlunar-X.Y.Z.tgzpublished as a GitHub release within ~1 min of the bump PR merging