Skip to content

Commit

Permalink
add GitHub Actions to update
Browse files Browse the repository at this point in the history
  • Loading branch information
taisukef committed Nov 29, 2023
1 parent c5aadd2 commit 4fb7c09
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Scheduled

on:
schedule:
# 4:31分に実行 4(JST)-9+24=19(UTC)
- cron: '31 19 * * *'

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
deno run -A make.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

0 comments on commit 4fb7c09

Please sign in to comment.