File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -279,10 +279,10 @@ jobs:
279279 # Verify required fields are present
280280 docker run --rm ${{ env.REGISTRY_NODE_IMAGE }}:${{ env.DOCKER_TAG }} build-info | grep -E "Version:|Build time:|Commit SHA:|Commit branch:|Rustc version:"
281281
282- # Verify version format
282+ # Verify version format (commit hash or version tag)
283283 VERSION=$(docker run --rm ${{ env.REGISTRY_NODE_IMAGE }}:${{ env.DOCKER_TAG }} build-info | grep "Version:" | awk '{print $2}')
284- if [[ ! "$VERSION" =~ ^[0-9a-f]{7}$ ]]; then
285- echo "Error: Version should be a 7-character commit hash, got: $VERSION"
284+ if [[ ! "$VERSION" =~ ^[0-9a-f]{7}$ ]] && [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+ ]] ; then
285+ echo "Error: Version should be either a 7-character commit hash or a version tag (vX.Y.Z) , got: $VERSION"
286286 exit 1
287287 fi
288288
You can’t perform that action at this time.
0 commit comments