Skip to content

Commit

Permalink
Merge pull request #152 from eatski/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
eatski authored Apr 8, 2024
2 parents 3cdea1c + 56f9b52 commit af71055
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/batch.yaml
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'

0 comments on commit af71055

Please sign in to comment.