Update .github/workflows/cron.yml
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 5m26s

This commit is contained in:
2025-12-19 20:04:49 -05:00
parent f9769ca79c
commit c99743131d

View File

@@ -1,7 +1,7 @@
name: Daily Cron (Make New DailyStats Document) name: Daily Cron (Make New DailyStats Document)
on: on:
schedule: schedule:
- cron: "0 0 * * *" - cron: "4 0 * * *"
jobs: jobs:
cron: cron:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
@@ -15,4 +15,4 @@ jobs:
--url 'https://bot-stats.lucids-cove.duckdns.org/api/graphql' \ --url 'https://bot-stats.lucids-cove.duckdns.org/api/graphql' \
--header 'x-api-key: ${{ secrets.NEXT_PUBLIC_API_TOKEN }}' \ --header 'x-api-key: ${{ secrets.NEXT_PUBLIC_API_TOKEN }}' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data '{ "query": "mutation Cron { cronJob ( mutationKey: \"${{ secrets.GRAPHQL_MUTATION_KEY }}\" ) { commandResponses createdAt linksDeleted timesTriggered updatedAt } }" }' \ --data '{ "query": "mutation Cron { cronJob ( mutationKey: ${{ secrets.GRAPHQL_MUTATION_KEY }} ) { commandResponses createdAt linksDeleted timesTriggered updatedAt } }" }' \