Skip to content

fix: release via tag + dev-bump branch, never pushing to main#39

Merged
dacorvo merged 1 commit into
mainfrom
fix-release-protected-main
Jun 25, 2026
Merged

fix: release via tag + dev-bump branch, never pushing to main#39
dacorvo merged 1 commit into
mainfrom
fix-release-protected-main

Conversation

@dacorvo

@dacorvo dacorvo commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Aligns agentcap's release workflow with funes (PRs #23 + #24) so a release works on a protected main.

Previously the release pushed the version-bump commits straight to main (branch protection blocks it), and opening the dev-bump PR from the workflow's GITHUB_TOKEN is blocked org-wide ("Allow GitHub Actions to create and approve pull requests" is off — confirmed false on this repo).

Now a release:

  • tags the current main commit and publishes the binaries — tags aren't branch-protected;
  • force-pushes the <version>+dev bump on a chore/bump-dev-<version> branch and writes a one-click Create pull request link to the run summary.

main only ever advances through that maintainer-opened PR. No new settings or secrets required. Note: the published binaries carry the bumped version (stamped at build), while the tagged commit's Cargo.toml still shows the in-progress +dev marker.

🤖 Generated with Claude Code

Branch protection blocks pushing the version bump to main, and the org blocks
Actions from opening PRs. So a release tags the current main commit (tags aren't
protected) and publishes the binaries, then pushes the `<version>+dev` bump on a
branch and writes a one-click "create PR" link to the run summary — a maintainer
opens that PR and merges it. main only ever advances through that PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dacorvo dacorvo merged commit c49be05 into main Jun 25, 2026
4 checks passed
@dacorvo dacorvo deleted the fix-release-protected-main branch June 26, 2026 08: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