ci: change canary release tag format

This commit is contained in:
liuyi 2025-06-24 14:38:54 +08:00
parent d2a9b048ad
commit 8f0812ae12
No known key found for this signature in database
2 changed files with 1 additions and 6 deletions

View File

@ -21,8 +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
PACKAGE_VERSION=$(node -p "require('./package.json').version") APP_VERSION=$(date '+%Y.%-m.%-d-canary.%H')+build.$GIT_SHORT_HASH
APP_VERSION=$PACKAGE_VERSION-canary.$GIT_SHORT_HASH
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

View File

@ -1,10 +1,6 @@
name: Release name: Release
on: on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-canary.*'
schedule: schedule:
- cron: '0 9 * * *' - cron: '0 9 * * *'