Generate #139
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: 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 }} |