Revert "fix cron?"
Some checks are pending
Main / build-and-push-docker-image (20.x) (push) Waiting to run

This reverts commit 07fc7e8601.
This commit is contained in:
2025-12-18 21:59:11 -05:00
parent 07fc7e8601
commit ac288bd948

View File

@@ -1,7 +1,5 @@
name: Daily Cron (Make New DailyStats Document)
on:
push:
branches: [main]
schedule:
- cron: "0 0 * * *"
jobs:
@@ -14,7 +12,16 @@ jobs:
- name: Daily cron job | Create new dailyStats document.
run: |
curl --request POST \
--url 'https://bot-stats.lucids-cove.duckdns.org/api/graphql' \
--url 'bot-stats.lucids-cove.duckdns.org/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 } }" }' \
--data '{
"query": "mutation {
cronJob(mutationKey: ${{ secrets.GRAPHQL_MUTATION_KEY }}) {
commandResponses
createdAt
linksDeleted
timesTriggered
updatedAt
}
}"
}'