Compare commits

..

2 Commits

Author SHA1 Message Date
ac288bd948 Revert "fix cron?"
Some checks are pending
Main / build-and-push-docker-image (20.x) (push) Waiting to run
This reverts commit 07fc7e8601.
2025-12-18 21:59:11 -05:00
07fc7e8601 fix cron?
fiiiiix

fiiiiiiiiiiix

fixed?!

FIXED!

FORCE THIS SHIT TO RUN

fix string value error
2025-12-18 21:58:13 -05:00

View File

@@ -1,7 +1,5 @@
name: Daily Cron (Make New DailyStats Document) name: Daily Cron (Make New DailyStats Document)
on: on:
push:
branches: [main]
schedule: schedule:
- cron: "0 0 * * *" - cron: "0 0 * * *"
jobs: jobs:
@@ -14,7 +12,16 @@ jobs:
- name: Daily cron job | Create new dailyStats document. - name: Daily cron job | Create new dailyStats document.
run: | run: |
curl --request POST \ 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 'x-api-key: ${{ secrets.NEXT_PUBLIC_API_TOKEN }}' \
--header 'Content-Type: application/json' \ --data '{
--data '{ "query": "mutation Cron { cronJob ( mutationKey: \"${{ secrets.GRAPHQL_MUTATION_KEY }}\" ) { commandResponses createdAt linksDeleted timesTriggered updatedAt } }" }' \ "query": "mutation {
cronJob(mutationKey: ${{ secrets.GRAPHQL_MUTATION_KEY }}) {
commandResponses
createdAt
linksDeleted
timesTriggered
updatedAt
}
}"
}'