diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index f33a9e8..a778c83 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -14,8 +14,9 @@ jobs: curl --request POST \ --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 { + \"query\": \"mutation { cronJob(mutationKey: ${{ secrets.GRAPHQL_MUTATION_KEY }}) { commandResponses createdAt @@ -23,5 +24,5 @@ jobs: timesTriggered updatedAt } - }" + }\" }'