Skip to content

Commit

Permalink
Merge pull request #5 from kbaseIncubator/CE-265
Browse files Browse the repository at this point in the history
fix release tag regex [CE-265]
  • Loading branch information
eapearson authored Oct 19, 2023
2 parents 0f0dfc4 + c02dc37 commit eb60f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable_validate-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
with:
script: |
const releaseTag = '${{ inputs.release_tag }}';
if (!/v^[0-9]+\.[0-9]+\.[0-9]+$/.test(releaseTag)) {
if (!/^v[0-9]+\.[0-9]+\.[0-9]+$/.test(releaseTag)) {
core.setFailed(`Release version must follow semantic version naming prefixed with a "v" (e.g. v1.2.3) but is "${releaseTag}"`)
}

0 comments on commit eb60f81

Please sign in to comment.