File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,17 @@ jobs:
7171 - name : Install dependencies
7272 run : npm install
7373
74- # 获取 tag 的版本类型(仅支持 正式版和beta版 )
74+ # 获取 tag 的版本类型(仅支持 正式版、alpha和beta版 )
7575 - name : Determine release tag
7676 id : determine_tag
7777 run : |
7878 TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\/\(.*\)/\1/')
79- if [[ "$TAG" =~ -beta ]]; then
80- echo "::set-output name=tag::beta"
79+ if [[ "$TAG" =~ -alpha ]]; then
80+ echo "tag=alpha" >> "$GITHUB_OUTPUT"
81+ elif [[ "$TAG" =~ -beta ]]; then
82+ echo "tag=beta" >> "$GITHUB_OUTPUT"
8183 elif [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
82- echo "::set-output name= tag:: latest"
84+ echo "tag= latest" >> "$GITHUB_OUTPUT "
8385 else
8486 echo "Unsupported version detected. Terminating."
8587 exit 1
You can’t perform that action at this time.
0 commit comments