Skip to content

[FIX] [CI] Fix upgrading release notes to latest release#4045

Merged
Wauplin merged 1 commit intomainfrom
fix-upgrade-release-notes-in-ci
Apr 3, 2026
Merged

[FIX] [CI] Fix upgrading release notes to latest release#4045
Wauplin merged 1 commit intomainfrom
fix-upgrade-release-notes-in-ci

Conversation

@Wauplin
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin commented Apr 3, 2026

Currently getting

Warning: No draft release found for v1.9. Creating new release with auto-generated notes.
HTTP 422: Validation Failed (https://api.github.com/repos/huggingface/huggingface_hub/releases)
body is too long (maximum is 125000 characters)
Error: Process completed with exit code 1.

in CI when trying to upgrade the 1.x.x.rcX release notes to 1.x.x. Issue is that it's looking for a draft release but between the 2 runs we usually manually moved the release notes from draft to "ready" (but as prerelease instead of release).

This PR removes the "isDraft" check

Example: https://github.com/huggingface/huggingface_hub/actions/runs/23940040924/job/69824210746


Note

Medium Risk
Changes release promotion behavior in the GitHub Actions release.yml workflow; incorrect matching could update the wrong release tag for a minor version and affect published release metadata.

Overview
Fixes the minor-release promotion step in .github/workflows/release.yml to stop requiring a draft GitHub release when upgrading RC notes to the final tag.

Instead of filtering gh release list results by isDraft, the workflow now selects any existing release whose tagName starts with the target minor (e.g. v1.9.) and edits that release to retag it as the final version, avoiding fallback creation of a new release with auto-generated notes.

Written by Cursor Bugbot for commit 622003d. This will update automatically on new commits. Configure here.

@Wauplin Wauplin requested a review from hanouticelina April 3, 2026 10:05
@bot-ci-comment
Copy link
Copy Markdown

bot-ci-comment Bot commented Apr 3, 2026

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Copy Markdown
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@Wauplin Wauplin merged commit 7f6c07f into main Apr 3, 2026
19 of 21 checks passed
@Wauplin Wauplin deleted the fix-upgrade-release-notes-in-ci branch April 3, 2026 13:08
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