Compare commits
2 Commits
34dbc8d232
...
ac288bd948
| Author | SHA1 | Date | |
|---|---|---|---|
| ac288bd948 | |||
| 07fc7e8601 |
17
.github/workflows/cron.yml
vendored
17
.github/workflows/cron.yml
vendored
@@ -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
|
||||||
|
}
|
||||||
|
}"
|
||||||
|
}'
|
||||||
|
|||||||
Reference in New Issue
Block a user