编辑文件 my-first-workflow.yaml
This commit is contained in:
@@ -66,7 +66,7 @@ steps:
|
|||||||
depends_on: [prepare]
|
depends_on: [prepare]
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
VERSION="v$(git rev-parse --short=8 HEAD)"
|
VERSION="$(git rev-parse --short=8 HEAD)"
|
||||||
git rev-parse --short=8 HEAD
|
git rev-parse --short=8 HEAD
|
||||||
echo "BUILD_VERSION=${VERSION}" >> "$CI_ENV_FILE"
|
echo "BUILD_VERSION=${VERSION}" >> "$CI_ENV_FILE"
|
||||||
echo "构建版本号:${VERSION}"
|
echo "构建版本号:${VERSION}"
|
||||||
|
|||||||
Reference in New Issue
Block a user