Files
bots/.gitea/workflows/dog_facts.yaml
Camille Frantz c791942869
All checks were successful
DogFacts / deploy (push) Successful in 30s
QuipBot / deploy (push) Successful in 57s
PuppyBot / deploy (push) Successful in 37s
ReleaseBot / deploy (push) Successful in 53s
QuotesBot / deploy (push) Successful in 30s
specify the hours instead of an interval so that the posting is staggered
2025-09-16 09:36:09 -05:00

29 lines
873 B
YAML

name: DogFacts
on:
schedule:
- cron: '13 4,8,12,16,20,00 * * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.13"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run dog_facts.py
run:
python dog_facts.py
env:
BOTS_DOGFACTS_TOKEN: ${{ secrets.BOTS_DOGFACTS_TOKEN }}
BOTS_ENDPOINT: ${{ secrets.BOTS_ENDPOINT }}
PUSHOVER_ENDPOINT: ${{ secrets.PUSHOVER_ENDPOINT }}
PUSHOVER_USER_TOKEN: ${{ secrets.PUSHOVER_USER_TOKEN }}
PUSHOVER_BOTS_TOKEN: ${{ secrets.PUSHOVER_BOTS_TOKEN }}