[ CI ] 更新CI流程 - 3

This commit is contained in:
zeaslity
2023-02-09 17:01:42 +08:00
parent 969f8f0280
commit afb2e48fe4

View File

@@ -16,9 +16,6 @@ on:
# manually run this workflow from the Actions tab
workflow_dispatch:
env:
FORMAT_TIME: $(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")
jobs:
build-and-deploy:
runs-on: ubuntu-latest
@@ -134,8 +131,6 @@ jobs:
echo "current date is $(date)"
echo "start to copy target jar"
echo "FORMAT TIME IS ${FORMAT_TIME}"
export 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"