From ac288bd9485c3f2199872166259663c98367e57a Mon Sep 17 00:00:00 2001 From: Lucid Date: Thu, 18 Dec 2025 21:59:11 -0500 Subject: [PATCH] Revert "fix cron?" This reverts commit 07fc7e8601a67372a59c494c6de71d202543ff6c. --- .github/workflows/cron.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 00522b5..f33a9e8 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -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 + } + }" + }'