This repository has been archived by the owner on Jan 19, 2025. It is now read-only.
Daily update #2120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily update | |
on: | |
workflow_dispatch: | |
schedule: | |
# UTC+8 0000 | |
# - cron: "0 16 * * *" | |
# UTC+8 0600 | |
- cron: "0 22 * * *" | |
# UTC+8 1200 | |
# - cron: "0 04 * * *" | |
# UTC+8 1800 | |
- cron: "0 10 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
token: ${{secrets.PAT}} | |
- name: Scraping | |
run: | | |
cd tools && go run . && mv animad.json ../src/data/ && mv bilibili.json ../src/data/ && mv update.json ../src/data/ && cd .. | |
git config --global user.name 'Js0n' | |
git config --global user.email '29531167+JasonKhew96@users.noreply.github.com' | |
git commit -am "Automated update" | |
git push |