Skip to content

ci: Remove the bump release step that the tag release workflow already covers - #127

Open
th0rntwig wants to merge 1 commit into
mainfrom
ci/fix-bump-release-step
Open

th0rntwig wants to merge 1 commit into
mainfrom
ci/fix-bump-release-step

Conversation

@th0rntwig

Copy link
Copy Markdown
Member

🔴 Review tier: HIGH — human review required

  • CI: removes the Release step from .github/workflows/bump.yml
  • Unverified: the Bump workflow only runs on a push to main, so this change is only exercised by the first merge after it

Why

The Bump version job has failed on every push to main since at least 5 November, including merges that did release. The failing step is Release (softprops/action-gh-release). For example:

Both runs fail with Resource not accessible by integration. The step sets GITHUB_TOKEN as an env var, but the action reads its token input. That input defaults to the workflow token, which is read-only because bump.yml has no permissions: block (the job log shows Contents: read).

Releases still go out despite this. Commitizen pushes the tag with PERSONAL_ACCESS_TOKEN, which triggers release.yml. That workflow has contents: write, publishes to PyPI and then creates the GitHub release with generated notes. The step in bump.yml duplicates that and never succeeds.

What changed

  • Removed the Release step from bump.yml.
  • Removed changelog_increment_filename: body.md, which only that step read.

After this, bump.yml bumps the version, updates CHANGELOG.md and pushes the tag. release.yml is the only workflow that publishes to PyPI and creates the GitHub release, and it is unchanged.

Relation to #105 and #106

#105 and #106 (2 September) attempted the same fix. They switched the workflow to the built-in token and added a PyPI publish to bump.yml, then removed it again. main was force-pushed back to 4d3c1eec later that day, so neither change is on main. This PR changes no tokens and does not touch PyPI publishing.

Blast radius

GitHub release pages no longer carry the Commitizen changelog increment as their body. They already did not, because the step never succeeded, so the pages show the generated notes from release.yml. CHANGELOG.md is unaffected. A plain revert restores the old step.

This is a ci: commit, so merging it does not bump the version or publish a release.

Verification

  • The workflow YAML parses, and the job's steps are now Check out and Create bump and changelog.
  • No other file in the repo references body.md.
  • Not run: the workflow itself, which only runs after a merge to main. The next merge should show a green Bump version job.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
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