-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 1.15 KB
/
run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: run
on:
workflow_dispatch:
schedule:
- cron: '5 13 * * *' # 9:05AM EST every day
jobs:
bot:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
env:
ACCESS_KEY: ${{ secrets.ACCESS_KEY }}
ACCESS_SECRET: ${{ secrets.ACCESS_SECRET }}
CONSUMER_KEY: ${{ secrets.CONSUMER_KEY }}
CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }}
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }}
MASTODON_CLIENT_KEY: ${{ secrets.MASTODON_CLIENT_KEY }}
MASTODON_CLIENT_SECRET: ${{ secrets.MASTODON_CLIENT_SECRET }}
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
SLOW_ZONE_BOT_SLACK_WEBHOOK_URL: ${{ secrets.SLOW_ZONE_BOT_SLACK_WEBHOOK_URL }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run MBTA Slow Zone Bot in Debug mode
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
poetry run python3 slowzones.py --debug