Skip to content

Commit

Permalink
Update update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
beiyuouo committed Sep 19, 2022
1 parent 1024349 commit 1745d11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
runs-on: ubuntu-latest
env:
TZ: "Asia/Shanghai"
UPTM: $(date "+%Y-%m-%d %H:%M:%S")

steps:
- name: Checkout
Expand All @@ -33,7 +32,11 @@ jobs:
run: |
cd scripts && python main.py merge_md_yaml
- name: Get date time
id: date
run: echo "::set-output name=date::$(date -u +%Y-%m-%dT%H:%M:%SZ)"

- name: Commit Updated
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "auto update @ ${{ env.UPTM }} ${{ env.TZ }}"
commit_message: "auto update @ ${{ steps.date.outputs.date }} ${{ env.TZ }}"

0 comments on commit 1745d11

Please sign in to comment.