Skip to content

Commit 47afaf0

Browse files
committed
Fix bash regexp
1 parent 2a8ac52 commit 47afaf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/trigger_new_builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
# Calculate current image version
3434
# If the branch has has X.Y-xxxxx format, use it as docker tag. Else, use "dev" image (master branch).
3535
tag=dev
36-
if [[ ${{ env.GITHUB_REF_SLUG }} =~ \d+\.\d+\-\w+ ]]; then
36+
if [[ "${{ env.GITHUB_REF_SLUG }}" =~ [0-9]+\.[0-9]+\-[a-z]+ ]]; then
3737
tag=${{ env.GITHUB_REF_SLUG }}
3838
fi
3939
echo "LOG: docker tag: $tag"

0 commit comments

Comments
 (0)