[ci] use GITHUB_SHORT_SHA instead of build number in version

This commit is contained in:
dijunkun
2025-10-24 02:09:50 +08:00
parent ee5612da8b
commit 0bd27d0b17
6 changed files with 2694 additions and 2667 deletions

View File

@@ -15,8 +15,9 @@ jobs:
- name: Set version number
id: version
run: |
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
VERSION_NUM="${GITHUB_REF##*/}"
VERSION_NUM="${VERSION_NUM#v}"
VERSION_NUM="${VERSION_NUM#v}-${SHORT_SHA}"
echo "VERSION_NUM=${VERSION_NUM}" >> $GITHUB_ENV
echo "VERSION_NUM=${VERSION_NUM}" >> $GITHUB_OUTPUT