Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 13, 2022. It is now read-only.
/zxipdb-pythonPublic archive

Commit7cae580

Browse files
authored
Update update.yml
1 parente45eadf commit7cae580

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

‎.github/workflows/update.yml‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,19 @@ jobs:
3535
steps:
3636
-name:Checkout repository
3737
uses: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
4048
id:get_tag
4149
run:|
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
@@ -64,7 +68,7 @@ jobs:
6468

6569
-name:Update ipdata
6670
run:|
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
@@ -73,9 +77,9 @@ jobs:
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
8185
uses:ad-m/github-push-action@master
@@ -85,7 +89,7 @@ jobs:
8589
tags: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
9195
run:cat Release.txt

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp