Skip to content

Tito to Slack

Tito to Slack #91

# A github action to run a Python script
# that sends a message to a Slack channel daily at 9 am AEST
name: Tito to Slack
on:
schedule:
# This should be 9 am AEST
- cron: "0 23 * * *"
workflow_dispatch:
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: pip install .
- name: Run Python script
env:
TITO_KEY: ${{ secrets.TITO_KEY }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run: tito-to-slack ${{ vars.ACCOUNT }} ${{ vars.EVENT }}