This commit is contained in:
15
.github/workflows/cron.yml
vendored
15
.github/workflows/cron.yml
vendored
@@ -12,16 +12,7 @@ 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 '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 }}' \
|
||||||
--data '{
|
--header 'Content-Type: application/json' \
|
||||||
"query": "mutation {
|
--data '{ "query": "mutation Cron { cronJob ( mutationKey: \"${{ secrets.GRAPHQL_MUTATION_KEY }}\" ) { commandResponses createdAt linksDeleted timesTriggered updatedAt } }" }' \
|
||||||
cronJob(mutationKey: ${{ secrets.GRAPHQL_MUTATION_KEY }}) {
|
|
||||||
commandResponses
|
|
||||||
createdAt
|
|
||||||
linksDeleted
|
|
||||||
timesTriggered
|
|
||||||
updatedAt
|
|
||||||
}
|
|
||||||
}"
|
|
||||||
}'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user