1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-18 23:43:02 +08:00

ci(workflows): 修改一些字符格式 (#2)

This commit is contained in:
Kenan Zhu
2026-03-16 16:40:13 +08:00
committed by GitHub
+4 -4
View File
@@ -80,8 +80,8 @@ jobs:
# Validate branch name starts with 'release/v' # Validate branch name starts with 'release/v'
if ! echo "$BRANCH_NAME" | grep -qE '^release/v'; then if ! echo "$BRANCH_NAME" | grep -qE '^release/v'; then
echo "X Error: Branch '$BRANCH_NAME' does not start with 'release/v'" echo " Error: Branch '$BRANCH_NAME' does not start with 'release/v'"
echo "X This workflow should only be triggered by release branches" echo " This workflow should only be triggered by release branches"
exit 1 exit 1
fi fi
@@ -98,8 +98,8 @@ jobs:
TAG_NAME=$(echo "$BRANCH_NAME" | sed -E 's|^release/(v[0-9]+\.[0-9]+\.[0-9]+-.*)$|\1|') TAG_NAME=$(echo "$BRANCH_NAME" | sed -E 's|^release/(v[0-9]+\.[0-9]+\.[0-9]+-.*)$|\1|')
IS_RC=true IS_RC=true
else else
echo "X Error: Branch '$BRANCH_NAME' does not match expected format" echo " Error: Branch '$BRANCH_NAME' does not match expected format"
echo "X Expected format: release/vX.Y.Z or release/vX.Y.Z-rcX" echo " Expected format: release/vX.Y.Z or release/vX.Y.Z-rcX"
exit 1 exit 1
fi fi
VERSION="${TAG_NAME#v}" VERSION="${TAG_NAME#v}"