update-vestaboard #6174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update-vestaboard | |
on: | |
# Allows manual trigger of the workflow from the Actions tab | |
workflow_dispatch: | |
# Schedule the workflow to run every 10 minutes | |
# schedule: | |
# - cron: '*/10 * * * *' | |
jobs: | |
update-vestaboard: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run orchestration script | |
id: supercluster | |
run: | | |
python main.py | |
env: | |
AIDY_API_URL: ${{ secrets.AIDY_API_URL }} | |
AIDY_TOPICS: ${{ secrets.AIDY_TOPICS }} | |
TWITTER_USERS: ${{ secrets.TWITTER_USERS }} | |
SANITY_API_URL: ${{ secrets.SANITY_API_URL }} | |
VESTABOARD_API_KEY: ${{ secrets.VESTABOARD_API_KEY }} | |
# TWITTER_AUTH_TOKEN: ${{ secrets.TWITTER_AUTH_TOKEN }} | |
- name: Persist Data | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update persistent data |