Skip to content

Automatic commit by backtab #1814

Automatic commit by backtab

Automatic commit by backtab #1814

Workflow file for this run

# This workflow will install Python dependencies and run a python script to send a Mattermost message
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Mattermost bot
env:
MM_URL: https://chat.hackerspace.gent/
on:
push:
branches: [ "master" ]
paths: [ "ledger/*.beancount" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '2'
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f mmbot/requirements.txt ]; then pip install -r mmbot/requirements.txt; fi
- name: Run mmbot-tx.py
run: python mmbot/mmbot-tx.py --mm_url ${{ env.MM_URL }} --token ${{ secrets.MMBOT_TOKEN }}