Skip to content

fix(ci): fix release automation — use ADMIN_TOKEN for protected branches#28

Merged
abrichr merged 1 commit into
mainfrom
fix/release-automation
Feb 13, 2026
Merged

fix(ci): fix release automation — use ADMIN_TOKEN for protected branches#28
abrichr merged 1 commit into
mainfrom
fix/release-automation

Conversation

@abrichr
Copy link
Copy Markdown
Member

@abrichr abrichr commented Feb 13, 2026

Summary

  • Fix semantic-release unable to push version-bump commits to protected main branch
  • Sync pyproject.toml version from 0.2.0 to 0.3.0 (matches latest tag)
  • Add skip-check to prevent infinite loops when release commits trigger the workflow

Root cause

GITHUB_TOKEN cannot push commits to branches with protection rules. Semantic-release successfully created the v0.3.0 tag (tags bypass protection) but the chore: release 0.3.0 commit that updates pyproject.toml became orphaned — never landed on main. Every subsequent run says "0.3.0 has already been released!" because the tag exists.

Changes

  • release.yml: Use ADMIN_TOKEN for checkout and semantic-release actions
  • release.yml: Add author-check skip step for "semantic-release" commits
  • pyproject.toml: Sync version to 0.3.0

Prerequisite

Add ADMIN_TOKEN secret (GitHub PAT with repo scope) to repository settings at:
https://github.com/OpenAdaptAI/openadapt-evals/settings/secrets/actions

🤖 Generated with Claude Code

…d branches

Root cause: GITHUB_TOKEN cannot push commits to protected branches.
Semantic-release created the v0.3.0 tag (tags bypass protection) but
the "chore: release 0.3.0" commit that bumps pyproject.toml was orphaned.

- Use ADMIN_TOKEN for checkout and semantic-release (can push to main)
- Add skip-check to prevent infinite loops on release commits
- Sync pyproject.toml version to 0.3.0 (matches latest tag)

Prerequisite: Add ADMIN_TOKEN secret (GitHub PAT with repo scope) to
repository settings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abrichr abrichr merged commit 9132540 into main Feb 13, 2026
@abrichr abrichr deleted the fix/release-automation branch February 13, 2026 01:40
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