编辑文件 my-first-workflow.yaml

This commit is contained in:
xinian
2026-01-28 12:40:19 +08:00
committed by cnb
parent 82acdb1860
commit 372c913d19

View File

@@ -67,7 +67,7 @@ steps:
commands:
- |
VERSION="v$(git rev-parse --short=8 HEAD)"
echo v$(git rev-parse --short=8 HEAD)
echo git rev-parse --short=8 HEAD
echo "BUILD_VERSION=${VERSION}" >> "$CI_ENV_FILE"
echo "构建版本号:${VERSION}"
echo "✅ 生成版本号:${VERSION}"