Skip to content

Update Archive

Update Archive #1084

name: Update Archive
on:
schedule:
# UTC 10:39 & 18:39
# 北京 18:39 & 02:39
- cron: '39 10,18 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
update-archive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Fetch Updates from API
run: node scripts/update-archive.mjs
- name: Commit Updates to Github
if: success()
run: |
git config user.name "leex"
git config user.email "[email protected]"
git status --short
git add ./archive
git commit -m "ci: update archive $(date --iso-8601=seconds)"
git push