26 lines
691 B
YAML
26 lines
691 B
YAML
name: QuotesBot
|
|
schedule:
|
|
- cron '36 */4 * * *'
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
deploy:
|
|
runs: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: "3.13"
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
- name: Run Script
|
|
run:
|
|
python app.py
|
|
env:
|
|
POST_TOKEN: ${{ secrets.POST_TOKEN }}
|
|
POST_ENDPOINT: ${{ secrets.POST_ENDPOINT }}
|
|
SOURCE_ENDPOINT: ${{ secrets.SOURCE_ENDPOINT }}
|