编辑文件 my-first-workflow.yaml

This commit is contained in:
xinian
2026-01-28 12:46:20 +08:00
committed by cnb
parent 0180163244
commit fa69e7bdce

View File

@@ -66,7 +66,7 @@ steps:
depends_on: [prepare]
commands:
- |
VERSION="v$(git rev-parse --short=8 HEAD)"
VERSION="$(git rev-parse --short=8 HEAD)"
git rev-parse --short=8 HEAD
echo "BUILD_VERSION=${VERSION}" >> "$CI_ENV_FILE"
echo "构建版本号:${VERSION}"