Skip to content

Scheduled fetch

Scheduled fetch #1023

name: Scheduled fetch
on:
schedule:
# 毎日9:44分に実行 (JST=UTC+9)
- cron: '44 0 * * *'
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 download.js
deno run -A makeImageList.js
- name: commit and push
run: |
git config --global user.email "workflow@example.com"
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