mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-18 15:33:03 +08:00
ci(workflows): 修改一些字符格式 (#2)
This commit is contained in:
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user