Skip to content

Commit a4e6b00

Browse files
author
Vladislav Kalugin
committed
Fix tag regexp
1 parent 065aa10 commit a4e6b00

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish-utbot.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
submodules: recursive
4747
- name: set version
4848
run: |
49-
re="^[1-9][0-9]{3}\.[1]?[0-9]\.[1-9][0-9]*$"
49+
echo $GITHUB_REF_NAME
50+
re="^[1-9][0-9]{3}\.[1]?[0-9]\.(0|[1-9][0-9]*)$"
5051
if [[ $GITHUB_REF_NAME =~ $re ]]; then
5152
export VERSION=$GITHUB_REF_NAME
5253
echo "ARTIFACT_NAME=release-$VERSION" >> $GITHUB_ENV
@@ -57,6 +58,9 @@ jobs:
5758
echo "VERSION=$VERSION" >> $GITHUB_ENV
5859
export RUN_INFO=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
5960
echo "RUN_INFO=RUN_INFO" >> $GITHUB_ENV
61+
- name: echo version
62+
run: |
63+
echo $ARTIFACT_NAME
6064
- name: build VSCode plugin
6165
run: |
6266
chmod +x docker/action-scripts/build-vsix.sh

0 commit comments

Comments
 (0)