Skip to content

crawler->update

crawler->update #1513

Workflow file for this run

name: crawler->update
on:
workflow_dispatch:
schedule:
- cron: "30 2,9,10 * * *" # UTC
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 18
- name: setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: prepare
run: |
pnpm install
pnpm run build:common
- name: crawler
run: |
pnpm run build:crawler
pnpm run start:crawler
cp ./packages/crawler/manga-info.json ./
- name: setup ali-oss
uses: manyuanrong/setup-ossutil@master
with:
endpoint: ${{ secrets.ALI_OSS_ENDPOINT }}
access-key-id: ${{ secrets.ALI_OSS_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.ALI_OSS_ACCESS_KEY_SECRET }}
- name: update
# need to authorize the user of those access keys above, with the write/read operations
run: ossutil cp -f ./manga-info.json oss://${{ secrets.ALI_OSS_BUCKET }}/manga-info.json --acl public-read