Files
no-twitter-bot-stats/.github/workflows/cron.yml
Lucid f51580e8ea
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
Updated graphql query in cron job. updated .gitignore. Updated conJob in typeDegf. Updated cron github action.
2025-12-22 15:58:39 -05:00

22 lines
731 B
YAML

name: Daily Cron (Make New DailyStats Document)
on:
push:
branches: [main]
schedule:
- cron: "0 5 * * *"
jobs:
cron:
runs-on: ubuntu-24.04
steps:
- name: Install curl
run: apk add --no-cache curl
- name: Daily cron job | Create new dailyStats document.
run: |
curl --request POST \
--url 'https://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 } }" }' \