ci: change canary release tag format
This commit is contained in:
parent
d2a9b048ad
commit
8f0812ae12
3
.github/actions/prepare-release/action.yml
vendored
3
.github/actions/prepare-release/action.yml
vendored
@ -21,8 +21,7 @@ runs:
|
||||
if [ "${{ github.ref_type }}" == "tag" ]; then
|
||||
APP_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
|
||||
else
|
||||
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
||||
APP_VERSION=$PACKAGE_VERSION-canary.$GIT_SHORT_HASH
|
||||
APP_VERSION=$(date '+%Y.%-m.%-d-canary.%H')+build.$GIT_SHORT_HASH
|
||||
fi
|
||||
if [[ "$APP_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
BUILD_TYPE=stable
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -1,10 +1,6 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+-canary.*'
|
||||
|
||||
schedule:
|
||||
- cron: '0 9 * * *'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user