-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from eatski/dev
Dev
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Schedule Batch Job | ||
|
||
on: | ||
# Runs every 10 minutes from 20:00 to 20:50 UTC, which is 05:00 to 05:50 JST | ||
schedule: | ||
- cron: '0/10 20 * * *' | ||
# manual trigger | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run batch job | ||
env: | ||
BATCH_API_KEY: ${{ secrets.BATCH_API_KEY }} | ||
run: curl -X POST --header 'authorization:$BATCH_API_KEY' 'https://iesona.com/api/batch/questionLog/refine?take=50' |