Skip to content

fix(ci): correct RC tag regex in promote-release workflow#328

Merged
skevetter merged 1 commit into
mainfrom
4e20-56e8-fix-promote-regex
May 18, 2026
Merged

fix(ci): correct RC tag regex in promote-release workflow#328
skevetter merged 1 commit into
mainfrom
4e20-56e8-fix-promote-regex

Conversation

@skevetter

@skevetter skevetter commented May 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix tag validation regex in promote-release.yml to match release-please's dot-separated RC tag format (v1.3.0-rc.4 instead of v1.3.0-rc4)
  • Update input description example to show correct format

Summary by CodeRabbit

  • Chores
    • Enhanced release candidate tag validation to enforce stricter formatting with dot-separated prerelease numbering (e.g., v1.3.0-rc.1).

Review Change Stack

The promote-release workflow's tag validation regex rejected valid RC
tags like v1.3.0-rc.4 because it expected the format v*.*.*-rc* without
a dot separator. Updated the regex to require the dot (rc\.[0-9]+) and
fixed the input description example to match.
@netlify

netlify Bot commented May 18, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 7e858eb
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a0afc89726a0400086d8311

@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

The promote-release GitHub Actions workflow is updated to enforce stricter RC tag formatting. The rc_tag input documentation and validation regex now require dot-separated prerelease numbering (e.g., v1.3.0-rc.1) instead of allowing the prior -rc format without a dot separator.

Changes

RC tag format validation

Layer / File(s) Summary
RC tag format validation
.github/workflows/promote-release.yml
The rc_tag input documentation is updated to show the required -rc.<number> format, and the validation regex is tightened to enforce dot-separated RC prerelease numbering instead of the prior flexible -rc pattern.

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and clearly describes the main change: correcting the RC tag regex validation in the promote-release workflow to match the proper dot-separated format.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 and usage tips.

@skevetter skevetter marked this pull request as ready for review May 18, 2026 11:58
@skevetter skevetter enabled auto-merge (squash) May 18, 2026 11:58

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/promote-release.yml:
- Around line 33-34: Update the validation error message that references RC_TAG
so it matches the stricter regex used in the check (the grep on RC_TAG). Replace
the vague text "expected v*.*.*-rc*" with an explicit format such as "expected
v<major>.<minor>.<patch>-rc.<number>" so the error message clearly documents the
required tag format checked by the line using grep -qE
'^v[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$'.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 71ff13cc-7a8c-41e1-8ed6-39f16eb73727

📥 Commits

Reviewing files that changed from the base of the PR and between 1b94cd7 and 7e858eb.

📒 Files selected for processing (1)
  • .github/workflows/promote-release.yml

Comment on lines +33 to 34
if ! echo "$RC_TAG" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$'; then
echo "::error::Invalid RC tag format: $RC_TAG (expected v*.*.*-rc*)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Update the validation error message to match the new regex format.

Line 34 still says expected v*.*.*-rc*, but Line 33 now requires -rc.<number>. Please make the error explicit (for example: expected v<major>.<minor>.<patch>-rc.<number>).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/promote-release.yml around lines 33 - 34, Update the
validation error message that references RC_TAG so it matches the stricter regex
used in the check (the grep on RC_TAG). Replace the vague text "expected
v*.*.*-rc*" with an explicit format such as "expected
v<major>.<minor>.<patch>-rc.<number>" so the error message clearly documents the
required tag format checked by the line using grep -qE
'^v[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$'.

@skevetter skevetter merged commit 6bdacbe into main May 18, 2026
52 of 56 checks passed
@skevetter skevetter deleted the 4e20-56e8-fix-promote-regex branch May 18, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant