Skip to content

ci: trigger crates release on crates-v* tags - #23

Merged
pratyush618 merged 1 commit into
masterfrom
ci/crates-tag-trigger
Aug 4, 2026
Merged

ci: trigger crates release on crates-v* tags#23
pratyush618 merged 1 commit into
masterfrom
ci/crates-tag-trigger

Conversation

@kartikeya-27

Copy link
Copy Markdown
Contributor

crates-v0.1.1 was pushed and nothing ran — publish-crates.yml has zero runs.

Cause

crates-v* was only ever an output of the workflow: the tag it writes after a successful publish, so a release can be traced back to a commit. It was never accepted as an input trigger. The trigger pattern is:

tags:
  - "[0-9]+.[0-9]+.[0-9]+*"

crates-v0.1.1 does not match it, so the tag push was ignored.

Fix

Accept both forms:

tags:
  - "[0-9]+.[0-9]+.[0-9]+*"
  - "crates-v[0-9]+.[0-9]+.[0-9]+*"

A bare version tag still releases both registries at once. crates-v* now also releases the crates on their own, without touching PyPI — useful when only the Rust side needs recutting.

The version check compared --expect "$GITHUB_REF_NAME" against the manifests, which would have failed on crates-v0.1.1 even once the trigger matched. It now strips the prefix, which is a no-op on a bare tag:

crates-v0.1.1      -> 0.1.1
0.1.1              -> 0.1.1
crates-v0.2.0-rc1  -> 0.2.0-rc1

No loop risk from the workflow writing its own trigger tag: GitHub suppresses workflow runs for refs pushed with the default GITHUB_TOKEN. And if the tag already exists at the released commit, the tagging step no-ops rather than failing.

Verification

  • Prefix stripping checked against all three tag shapes (above)
  • check_versions.py --expect 0.1.1 passes against the current manifests
  • actionlint clean

Releasing 0.1.1 now

This PR is not required to publish. workflow_dispatch already works today:

gh workflow run publish-crates.yml --ref master

Once this merges, re-pushing crates-v0.1.1 also works — but it has to be deleted and re-pushed, since the original push event is gone.

crates-v* was only ever written by the workflow, never accepted as a
trigger, so pushing one released nothing. Accept it alongside the bare
version tag and strip the prefix before the version check.
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@kartikeya-27, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d3051cc7-65da-4d93-b9b4-885c667d26f3

📥 Commits

Reviewing files that changed from the base of the PR and between 6edc6a5 and 8fa69a0.

📒 Files selected for processing (2)
  • .github/workflows/publish-crates.yml
  • CONTRIBUTING.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pratyush618
pratyush618 merged commit 1cd7761 into master Aug 4, 2026
8 checks passed
@pratyush618
pratyush618 deleted the ci/crates-tag-trigger branch August 4, 2026 06:12
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.

2 participants