From c02dc37344e38212f2d254aace5cc3c3a61c24da Mon Sep 17 00:00:00 2001 From: Erik Pearson Date: Thu, 19 Oct 2023 09:31:34 -0700 Subject: [PATCH] fix release tag regex [CE-265] --- .github/workflows/reusable_validate-release-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable_validate-release-tag.yml b/.github/workflows/reusable_validate-release-tag.yml index bb2baee..2054ce0 100644 --- a/.github/workflows/reusable_validate-release-tag.yml +++ b/.github/workflows/reusable_validate-release-tag.yml @@ -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}"`) } \ No newline at end of file