[ CI ] 更新CI流程 - 1

This commit is contained in:
zeaslity
2023-02-09 16:46:33 +08:00
parent ef3ae9b306
commit cba467b2d1

View File

@@ -129,11 +129,11 @@ jobs:
ls
echo "start to change timezone to Asia/Shanghai"
echo "current format date is $(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")"
echo "current date is $(date)"
echo "start to copy target jar"
local formatTime=$(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")"
formatTime=$(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")"
echo "current format date is ${formatTime}"
echo "write the version info to env"
echo "AGENT_VERSION= ${formatTime}>> $GITHUB_ENV