Skip to content

bot runner

bot runner #481

Workflow file for this run

name: bot runner
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# allow action to be triggered via webhook
# repository_dispatch:
# types:
# - webhook_got_tennis_bot
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
make install
- name: Run bot
env:
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
run: make run