Skip to content

Commit 305f167

Browse files
authored
Update tag check to allow beta releases (#14)
1 parent 28fce8e commit 305f167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/_release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
steps:
1010
- name: Check tag
1111
run: |
12-
if [[ ! "${GITHUB_REF_NAME}" =~ ^([a-z0-9]+(-[a-z0-9]+)*)@([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
13-
echo "Invalid tag format: '${GITHUB_REF_NAME}'. Expected 'kebab-case@semver', e.g., '[email protected]'"
12+
if [[ ! "${GITHUB_REF_NAME}" =~ ^[a-z0-9]+(-[a-z0-9]+)*@[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)[0-9]+)?$ ]]; then
13+
echo "Invalid tag format: '${GITHUB_REF_NAME}'. Expected 'kebab-case@X.Y.Z[-(alpha|beta|rc)N]', e.g., '[email protected]' or '[email protected]'"
1414
exit 1
1515
fi
1616

0 commit comments

Comments
 (0)