From cba467b2d12a1361eccf4c83a1dbd8122fe77459 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Thu, 9 Feb 2023 16:46:33 +0800 Subject: [PATCH] =?UTF-8?q?[=20CI=20]=20=E6=9B=B4=E6=96=B0CI=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=20-=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-push-docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-push-docker.yml b/.github/workflows/build-push-docker.yml index 3c9d3b3..2f1c60a 100644 --- a/.github/workflows/build-push-docker.yml +++ b/.github/workflows/build-push-docker.yml @@ -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