Skip to content

Scheduled fetch

Scheduled fetch #1226

name: Scheduled fetch
on:
schedule:
# 毎日16:08分に実行 (JST=UTC+9)
- cron: '8 7 * * *'
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: deno run -A downloadDiff.js
#run: deno run -A downloadDiffLatest.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