修复了一些问题
This commit is contained in:
1 parent
a65468191b
commit
ec9a7d68e6
4 files changed
+108
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
name: Dev Daily (Fixed Release)
|
||||
name: Dev Daily
|
||||
|
||||
on:
|
||||
schedule:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Preview Nightly (Main)
|
||||
name: Preview Nightly
|
||||
|
||||
on:
|
||||
schedule:
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
|
||||
BASE_VERSION="$(node -p "require('./package.json').version.split('-')[0]")"
|
||||
YEAR_2="$(TZ=Asia/Shanghai date +%y)"
|
||||
EXISTING_COUNT="$(gh api --paginate "repos/${GITHUB_REPOSITORY}/releases" --jq "[.[].tag_name | select(test(\"^v${BASE_VERSION}-preview\\.${YEAR_2}\\.[0-9]+$\"))] | length")"
|
||||
EXISTING_COUNT="$(gh api --paginate "repos/${GITHUB_REPOSITORY}/releases" --jq "[.[].tag_name | select(test(\"^v${BASE_VERSION}-preview[.]${YEAR_2}[.][0-9]+$\"))] | length")"
|
||||
NEXT_COUNT=$((EXISTING_COUNT + 1))
|
||||
PREVIEW_VERSION="${BASE_VERSION}-preview.${YEAR_2}.${NEXT_COUNT}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user