circle-search-26-api / .github /workflows /update_data.yaml
ktsn-ud
データ更新のエンドポイントを作成し,定期的に叩くGitHubワークフローを追加
b2b44fd
Raw
History Blame Contribute Delete
523 Bytes
name: update data
on:
schedule:
- cron: '0 18 * * *' # 毎日3時(JST)に実行
workflow_dispatch:
jobs:
call:
runs-on: ubuntu-latest
steps:
- name: Trigger HF Space FastAPI Endpoint
run: |
curl --fail --show-error --silent -X 'POST' \
'${{ vars.FASTAPI_URL }}/tasks/update' \
-H 'accept: application/json' \
-H 'Authorization: Bearer ${{ secrets.HF_TOKEN }}' \
-H 'X-API-KEY: ${{ secrets.API_SECRET_KEY }}' \
-d ''