Skip to content

Scope version-bump check to pull requests only - #3

Merged
imohsenb merged 1 commit into
mainfrom
ci/scope-version-bump-to-pr
Aug 7, 2026
Merged

imohsenb merged 1 commit into
mainfrom
ci/scope-version-bump-to-pr

Conversation

@imohsenb

@imohsenb imohsenb commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • The version-bump job in verify.yml ran on push: branches: [main] as well as pull_request, so it re-ran after every merge to main and always failed there: release.yml tags the just-merged Cargo.toml version immediately, so by the time (or shortly after) verify.yml re-checks on the main push, the current version equals the latest tag and the job errors out (version (1.0.0) must be bumped above the latest release tag (1.0.0)), see run https://github.com/imohsenb/git-task/actions/runs/31130055172.
  • The job was only ever meant to gate PRs before merge (per the comment already in release.yml), so add if: github.event_name == 'pull_request' to restrict it to that trigger.
  • Bump Cargo.toml/Cargo.lock to 1.0.1 so this PR itself passes the (now PR-only) version-bump gate.

Test plan

  • cargo build
  • cargo test --workspace --locked

The version-bump job in verify.yml also ran on push to main, so it
fired again after every merge and always failed since main's
Cargo.toml version equals the tag release.yml just created for it.
It was only ever meant to gate PRs (see the comment in release.yml).
@imohsenb imohsenb changed the title ci: scope version-bump check to pull requests only Scope version-bump check to pull requests only Aug 7, 2026
@imohsenb
imohsenb merged commit 3724406 into main Aug 7, 2026
2 checks passed
@imohsenb
imohsenb deleted the ci/scope-version-bump-to-pr branch August 7, 2026 08:37
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