Scheduled update #16424
This file contains hidden or 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 update | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # 10分間隔で実行 | |
| #- cron: '*/10 * * * *' | |
| # 1時間間隔で実行 | |
| - cron: '5 * * * *' | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: v1.x | |
| - name: make | |
| run: | | |
| deno run -A download.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 |