Files
no-twitter-bot-stats/.github/workflows/cron.yml
Lucid 3e90e1d3ac
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m52s
Daily Cron (Make New DailyStats Document) / cron (push) Successful in 31s
Update .github/workflows/cron.yml
adjusted for DST
2026-03-18 01:01:13 -04:00

20 lines
698 B
YAML

name: Daily Cron (Make New DailyStats Document)
on:
schedule:
- cron: "0 4 * * *"
jobs:
cron:
runs-on: ubuntu-24.04
steps:
- name: Install curl
run: apk add --no-cache curl
- name: Daily cron job | Create new dailyStats document.
run: |
curl --request POST \
--url 'https://bot-stats.werewolfkid.monster/api/graphql' \
--header 'x-api-key: ${{ secrets.NEXT_PUBLIC_API_TOKEN }}' \
--header 'Content-Type: application/json' \
--data '{ "query": "mutation Cron { cronJob ( mutationKey: \"${{ secrets.GRAPHQL_MUTATION_KEY }}\" ) { commandResponses createdAt linksDeleted timesTriggered updatedAt } }" }' \