[ CI ] 更新CI流程

This commit is contained in:
zeaslity
2023-02-09 16:43:44 +08:00
parent becceab36b
commit ef3ae9b306
5 changed files with 59 additions and 10 deletions

View File

@@ -133,10 +133,11 @@ jobs:
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")"
echo "write the version info to env"
echo "AGENT_VERSION=$(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")" >> $GITHUB_ENV
echo "AGENT_VERSION= ${formatTime}>> $GITHUB_ENV
cp ./agent-*.jar ./octopus-agent-${{ env.AGENT_VERSION }}.jar
cp ./agent-*.jar ./octopus-agent-${formatTime}.jar
cd /home/runner/work/ProjectOctopus/ProjectOctopus
echo "--------------------------------------"