Skip to content

forgot quotes

forgot quotes #3

Workflow file for this run

name: autofetch
on:
workflow_dispatch:
schedule:
- cron: '0 0 * 12,1,2,3 2,3,4'
push:
paths:
- '.github/workflows/autofetch.yml'
- 'usaco_util.ts'
- 'run.sh'
- 'push.sh'
jobs:
scrape_usaco:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run auto updates
run: |
npm ci
source run.sh || source push.sh
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Ping usaco-guide
uses: actions/github-script@v6
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: 'devo1ution',
repo: 'usaco-guide',
workflow_id: 'update-usaco.yml',
ref: 'algolia',
})