Skip to content

Create a release for every mirrored Ruff tag - #178

Open
Vam-si-krish wants to merge 1 commit into
astral-sh:mainfrom
Vam-si-krish:fix/release-all-mirrored-tags
Open

Create a release for every mirrored Ruff tag#178
Vam-si-krish wants to merge 1 commit into
astral-sh:mainfrom
Vam-si-krish:fix/release-all-mirrored-tags

Conversation

@Vam-si-krish

Copy link
Copy Markdown

Summary

Fixes #128.

When one mirror run creates more than one Ruff tag, the workflow currently
pushes every tag but creates a GitHub release only for the newest one. This
change records the tags on each new mirror commit, then creates a release for
each of those tags after pushing. Only the final tag is marked as the latest
release.

This intentionally considers only commits created by the current mirror run,
so historical tags without releases are not backfilled.

Test Plan

  • Parsed .github/workflows/main.yml with Ruby's YAML parser.
  • Exercised the tag extraction and latest-tag selection in a temporary Git
    repository containing two new tagged commits.
  • Ran git diff --check.

This PR was prepared with AI assistance and validated with the checks above.

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.

Mirror script can emit multiple version tags but CI is limited to releasing a single tag

1 participant