Skip to content

ci: auto-merge release-please PRs - #5

Merged
sebastiancorrea81 merged 2 commits into
mainfrom
ci/auto-merge-release-pr
Jul 28, 2026
Merged

ci: auto-merge release-please PRs#5
sebastiancorrea81 merged 2 commits into
mainfrom
ci/auto-merge-release-pr

Conversation

@sebastiancorrea81

@sebastiancorrea81 sebastiancorrea81 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a workflow that auto-merges the chore(main): release x.y.z PR opened by release-please, once its required checks pass.
  • Delegates the actual logic to the new reusable workflow in feat: add reusable auto-merge-release-pr workflow actions-nullplatform#83 (auto-merge-release.yml), so the same automation can be reused by other module repos instead of duplicating it per-repo.
  • Uses a token minted from a GitHub App (APP_RELEASE_ID / APP_RELEASE_PRIVATE_KEY, org-level secrets) instead of the default GITHUB_TOKEN, because merges/pushes made with the default Actions token don't trigger other workflows — the existing release.yml (push to main) would never fire and the tag/GitHub Release would never get created.

Depends on

How it works

  • Triggers on pull_request (opened/synchronize/labeled).
  • The reusable workflow only runs when the PR author is github-actions[bot] and it carries the autorelease: pending label (both set by release-please-action on its release PR).
  • Waits for the PR's checks (branch-validation, conventional-commit, shellcheck, trivy) to go green, then merges with a regular merge commit (matches how past release PRs — e.g. chore(main): release 0.0.2 #4 — were merged).

Test plan

  • Merge feat: add reusable auto-merge-release-pr workflow actions-nullplatform#83.
  • Merge this PR.
  • Confirm APP_RELEASE_ID / APP_RELEASE_PRIVATE_KEY org secrets are visible to this repo (org secret visibility set to "All repositories" or includes this repo).
  • Trigger a real release-please PR (any conventional commit to main) and confirm it gets auto-merged and a new tag/GitHub Release is created without manual intervention.

Merging with the default GITHUB_TOKEN would not trigger the
downstream push-triggered release workflow (GitHub's Actions
loop-prevention). Using a token minted from the App avoids that,
so the release tag/GitHub Release gets created automatically
right after this auto-merge.
…orkflow

Replaces the inline logic with a call to the new
auto-merge-release.yml reusable workflow (nullplatform/actions-nullplatform#83),
so the same logic can be reused across other module repos.
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