Files
no-twitter-bot-stats/.github/workflows/cron.yml
Lucid 7a5671daaf
Some checks are pending
Main / build-and-push-docker-image (20.x) (push) Waiting to run
added TX env variable
2025-12-20 08:14:05 -05:00

23 lines
730 B
YAML

name: Daily Cron (Make New DailyStats Document)
on:
schedule:
- cron: "0 0 * * *"
env:
TZ: "America/New_York"
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 } }" }' \