Skip to content

Commit 8f213d6

Browse files
committed
Update tag check to allow beta releases
1 parent 28fce8e commit 8f213d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ 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
12+
if [[ ! "${GITHUB_REF_NAME}" =~ ^[a-z0-9]+(-[a-z0-9]+)*@[0-9]+\.[0-9]+\.[0-9]+(-?(alpha|beta|rc)[0-9]+)?$ ]]; then
1313
echo "Invalid tag format: '${GITHUB_REF_NAME}'. Expected 'kebab-case@semver', e.g., '[email protected]'"
1414
exit 1
1515
fi

0 commit comments

Comments
 (0)