diff --git a/.github/workflows/publish-utbot.yml b/.github/workflows/publish-utbot.yml index c45653d3..e0179936 100644 --- a/.github/workflows/publish-utbot.yml +++ b/.github/workflows/publish-utbot.yml @@ -46,7 +46,8 @@ jobs: submodules: recursive - name: set version run: | - re="^[1-9][0-9]{3}\.[1]?[0-9]\.[1-9][0-9]*$" + echo $GITHUB_REF_NAME + re="^[1-9][0-9]{3}\.[1]?[0-9]\.(0|[1-9][0-9]*)$" if [[ $GITHUB_REF_NAME =~ $re ]]; then export VERSION=$GITHUB_REF_NAME echo "ARTIFACT_NAME=release-$VERSION" >> $GITHUB_ENV @@ -57,6 +58,9 @@ jobs: echo "VERSION=$VERSION" >> $GITHUB_ENV export RUN_INFO=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID echo "RUN_INFO=RUN_INFO" >> $GITHUB_ENV + - name: echo version + run: | + echo $ARTIFACT_NAME - name: build VSCode plugin run: | chmod +x docker/action-scripts/build-vsix.sh