ci: failed to detect new canary version

This commit is contained in:
liuyi committed 2025-06-24 15:24:12 +08:00
1 parent 9e1fa23c5e
commit cece56802b
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ runs:
if [ "${{ github.ref_type }}" == "tag" ]; then if [ "${{ github.ref_type }}" == "tag" ]; then
APP_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//') APP_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
else else
APP_VERSION=$(date '+%Y.%-m.%-d-canary.%H')+build.$GIT_SHORT_HASH APP_VERSION=$(date '+%Y.%-m.%-d-canary.%H%M')
fi fi
if [[ "$APP_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then if [[ "$APP_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
BUILD_TYPE=stable BUILD_TYPE=stable