-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (29 loc) · 958 Bytes
/
mmbot.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
36
# 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 }}