Schedule Batch Job #1520
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
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@v4 | |
- name: Run batch job | |
env: | |
BATCH_API_KEY: ${{ secrets.BATCH_API_KEY }} | |
run: | | |
curl -f -X POST --header "authorization:$BATCH_API_KEY" 'https://iesona.com/api/batch/questionLog/refine?take=50' |