Scheduled fetch #750
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: Scheduled fetch | |
on: | |
schedule: | |
# 毎日17:28分に実行 (UTC=JST-9) | |
- cron: '28 8 * * *' | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: fetch | |
run: | | |
cd deno | |
rm -rf temp/ | |
deno run -A scrapeSupportList.js | |
deno run -A fetchCovid19.js | |
deno run -A packlist.js | |
- name: commit and push | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "workflow user" | |
git add . | |
git commit -m 'update data' && git push ${REPO} HEAD:${{github.event.pull_request.head.ref}} || true | |
git push |