Socrates_docker / .github /workflows /proactive.yml
alesamodio's picture
adjust swithc caracteres
41b1039
Raw
History Blame Contribute Delete
771 Bytes
name: Daily Proactive Messages
on:
workflow_dispatch:
schedule:
- cron: '*/5 * * * *' # TEST — every 5 min; revert to '0 7 * * *' after testing
jobs:
proactive:
runs-on: ubuntu-latest
env:
TRIGGER_URL: ${{ secrets.TRIGGER_PROACTIVE_URL }} # e.g. https://alesamodio-trigger-proactive.hf.space
TRIGGER_SECRET: ${{ secrets.PROACTIVE_TRIGGER_SECRET }}
steps:
- name: Wake trigger Space
run: |
echo "== Waking trigger Space =="
curl -sS "$TRIGGER_URL/" >/dev/null || true
sleep 20
- name: Fire trigger Space
run: |
echo "== Calling trigger Space /run =="
curl -sS \
-H "x-trigger-secret: $TRIGGER_SECRET" \
"$TRIGGER_URL/run"