Skip to content

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

Merged
abrichr merged 4 commits intomainfrom
fix/release-automation
Feb 13, 2026
Merged

fix(ci): fix release automation — use ADMIN_TOKEN for protected branches#8
abrichr merged 4 commits intomainfrom
fix/release-automation

Conversation

@abrichr
Copy link
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-capture/settings/secrets/actions

🤖 Generated with Claude Code

abrichr and others added 4 commits February 6, 2026 18:10
- Remove unused variable assignments (share.py, browser_bridge.py, windows.py, test_highlevel.py)
- Add noqa comment for Quartz import needed by ApplicationServices (darwin.py)
- Remove unused TYPE_CHECKING import (storage/__init__.py)
- Add proper TYPE_CHECKING import for CaptureStats annotation (generate_real_capture_plot.py)
- Auto-fix import sorting across multiple files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Uncomment PyPI badges (package now published as 0.3.0)
- Add "Sharing Recordings" section with Magic Wormhole usage
- Update openadapt-privacy from "Coming soon" to GitHub link
- Add share extra to optional extras table
- Add openadapt-privacy and openadapt-evals to Related Projects

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The detailed training workflow belongs in openadapt-ml's README.
This keeps openadapt-capture focused on its core functionality.
Users can find training info via the Related Projects link.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…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 4205cd5 into main Feb 13, 2026
1 of 4 checks passed
@abrichr abrichr deleted the fix/release-automation branch February 13, 2026 01:41
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