Updated graphql query in cron job. updated .gitignore. Updated conJob in typeDegf. Updated cron github action.
Some checks are pending
Main / build-and-push-docker-image (20.x) (push) Waiting to run
Daily Cron (Make New DailyStats Document) / cron (push) Successful in 3s

This commit is contained in:
2025-12-18 13:03:36 -05:00
committed by Lucid
parent 06e01b42e6
commit f51580e8ea
15 changed files with 9 additions and 5079 deletions

View File

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