Skip to content

ci(release): stop release-please auto-merge loop - #330

Merged
Endika merged 1 commit into
mainfrom
fix/release-please-loop
Jul 20, 2026
Merged

ci(release): stop release-please auto-merge loop#330
Endika merged 1 commit into
mainfrom
fix/release-please-loop

Conversation

@Endika

@Endika Endika commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Re-open of #325 (its branch was auto-deleted by Delete closed PR branch when the PR closed, before it merged, so the fix never reached main and the loop resumed on re-enable).

Root causes

  1. Release job deleted the release branch and self-redispatched (gh workflow run $WORKFLOW) when the PR had not merged within its 60s wait loop.
  2. Release PR authored by GITHUB_TOKEN → CI action_required (maintainer-approval gated) → never green → native auto-merge never fired → delete + redispatch recreated the PR every ~90s.

Fix (mirror working sister-app Monete)

  • Author the release PR with RELEASE_PLEASE_TOKEN so CI runs on it without the approval gate.
  • Replace the delete/redispatch (+ explicit deploy dispatch) block with just gh pr merge --rebase --auto. The PAT-authored merge is a push to main that re-triggers this workflow to cut the release and the on: push deploy.
  • Drop the now-unused actions: write permission.

Merge order matters

Merge THIS first, THEN re-enable Release Please. RELEASE_PLEASE_TOKEN is already set.

The release job deleted the release branch and re-dispatched itself when
the PR had not merged within 60s. Because the PR was authored by
GITHUB_TOKEN its CI never ran (action_required), so it never went green,
auto-merge never fired, and the branch-delete + self-redispatch recreated
the release PR every ~90s indefinitely.

Mirror the working sister-app config: author the PR with RELEASE_PLEASE_TOKEN
so CI runs on it, then just enable native auto-merge. The PAT-authored merge
is a push to main that re-triggers this workflow to cut the release and the
on:push deploy, so the delete/redispatch and explicit deploy dispatch are
no longer needed.
@Endika
Endika merged commit 37eeda9 into main Jul 20, 2026
5 checks passed
@Endika
Endika deleted the fix/release-please-loop branch July 20, 2026 09:11
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