diff --git a/.github/workflows/pull-requests-release.yaml b/.github/workflows/pull-requests-release.yaml index e266c0bd..a0eae267 100644 --- a/.github/workflows/pull-requests-release.yaml +++ b/.github/workflows/pull-requests-release.yaml @@ -145,13 +145,13 @@ jobs: uses: actions/github-script@v7 with: script: | - const tag = '${{ steps.get_tag.outputs.tag }}'; // v0.31.5-rc1 - const m = tag.match(/^v(\d+\.\d+\.\d+)(-rc\d+)?$/); + const tag = '${{ steps.get_tag.outputs.tag }}'; // v0.31.5-rc.1 + const m = tag.match(/^v(\d+\.\d+\.\d+)(-rc\.\d+)?$/); if (!m) { - core.setFailed(`❌ tag '${tag}' must match 'vX.Y.Z' or 'vX.Y.Z-rcN'`); + core.setFailed(`❌ tag '${tag}' must match 'vX.Y.Z' or 'vX.Y.Z-rc.N'`); return; } - const version = m[1] + (m[2] ?? ''); // 0.31.5‑rc1 + const version = m[1] + (m[2] ?? ''); // 0.31.5‑rc.1 const isRc = Boolean(m[2]); core.setOutput('is_rc', isRc); const outdated = '${{ steps.semver.outputs.comparison-result }}' === '<';