Skip to content

Commit 1745d11

Browse files
committed
Update update.yml
1 parent 1024349 commit 1745d11

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/update.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
env:
1212
TZ: "Asia/Shanghai"
13-
UPTM: $(date "+%Y-%m-%d %H:%M:%S")
1413

1514
steps:
1615
- name: Checkout
@@ -33,7 +32,11 @@ jobs:
3332
run: |
3433
cd scripts && python main.py merge_md_yaml
3534
35+
- name: Get date time
36+
id: date
37+
run: echo "::set-output name=date::$(date -u +%Y-%m-%dT%H:%M:%SZ)"
38+
3639
- name: Commit Updated
3740
uses: stefanzweifel/git-auto-commit-action@v4
3841
with:
39-
commit_message: "auto update @ ${{ env.UPTM }} ${{ env.TZ }}"
42+
commit_message: "auto update @ ${{ steps.date.outputs.date }} ${{ env.TZ }}"

0 commit comments

Comments
 (0)