Skip to content

Generate

Generate #119

Workflow file for this run

name: Generate
on:
workflow_dispatch:
schedule:
- cron: "0 17 * * 6"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: fregante/setup-git-user@v1
- uses: actions/setup-node@v2
with:
node-version: "14"
cache: 'yarn'
- name: Generate
run: |
yarn add moment lodash node-fetch && yarn script:defaulter && yarn script:generate && yarn script:remind
git add functions/files && git commit -m "auto-gen timetable: $(date)" && git push origin main
env:
api_key: ${{ secrets.API_KEY }}
baseUrl: ${{ secrets.BASEURL }}