chore: fix build-rc.yml workflow file (#744)

This commit is contained in:
Tim Man
2024-01-11 19:55:38 +08:00
committed by GitHub
parent 9165a41c29
commit a0e0a1382f

View File

@@ -61,10 +61,10 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/{owner}/{repo}/releases > releases.json
# get $TAG from branch name, e.g. v0.25.0
TAG=$(echo $SOURCE_BRANCH | sed 's/release\/\(.*\)/\1/')
export TAG=$(echo $SOURCE_BRANCH | sed 's/release\/\(.*\)/\1/')
# export $NEXT_TAG using releases.json and $TAG, e.g. v0.25.0-rc.0
cd scripts
./find-tag.sh
source ./find-tag.sh
# publish the release as prerelease rc
gh api \
--method POST \