@@ -35,15 +35,19 @@ jobs:
3535steps :
3636 -name :Checkout repository
3737uses :actions/checkout@v2
38+
39+ -name :Get Time
40+ id :get_time
41+ run :|
42+ chcp 65001
43+ Set-TimeZone -Name "China Standard Time"
44+ $timelocal="Auto_Update_$(Get-Date -Format 'yyyy-MM-dd_HH:mm:ss')"
45+ echo ::set-output name=TIMELOCAL::${timelocal}
3846
3947 -name :Get Tag
4048id :get_tag
4149run :|
42- chcp 65001
43- Set-TimeZone -Name "China Standard Time"
44- $timelocal="Auto Update $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')"
4550 $tagname="v$(Get-Date -Format 'yyyy.MM.dd')"
46- echo ::set-output name=TIMELOCAL::"${timelocal}"
4751 echo ::set-output name=TAGNAME::${tagname}
4852
4953 -name :Initialize mysql
6468
6569 -name :Update ipdata
6670run :|
67- echo "${steps.get_tag .outputs.TIMELOCAL}"
71+ echo "${steps.get_time .outputs.TIMELOCAL}"
6872 pipenv install --dev
6973 pipenv run python ./IP_Sync/ip_Sync.py
7074
7377 git config --global user.email ${{ secrets.USER_EMAIL }}
7478 git config --global user.name ${{ secrets.USER_NAME }}
7579 git add .
76- git commit -m "${steps.get_tag .outputs.TIMELOCAL}"
80+ git commit -m "${steps.get_time .outputs.TIMELOCAL}"
7781 git pull origin main
78- git tag -a ${steps.get_tag.outputs.TAGNAME} -m "${steps.get_tag .outputs.TIMELOCAL}"
82+ git tag -a ${steps.get_tag.outputs.TAGNAME} -m "${steps.get_time .outputs.TIMELOCAL}"
7983
8084 -name :Push changes
8185uses :ad-m/github-push-action@master
8589tags :true
8690
8791 -name :Build
88- run :echo "${steps.get_tag .outputs.TIMELOCAL}" > Release.txt
92+ run :echo "${steps.get_time .outputs.TIMELOCAL}" > Release.txt
8993
9094 -name :Test
9195run :cat Release.txt