Skip to content

Commit

Permalink
add tz pairing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lepisma committed Nov 30, 2023
1 parent 0387124 commit a8f1429
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/match-tz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Match (tz pairing)

on:
schedule:
- cron: '30 5 * * 1'

jobs:
post:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install poetry
- name: Install python dependencies
run: poetry install

- name: Match and post
env:
SLACK_BOT_USER_TOKEN: ${{ secrets.SLACK_BOT_USER_TOKEN }}
run: |
poetry run ccb pair-tz --output-json=test.json --user-group=coffee-catchup-group
poetry run ccb post --matches-json=test.json --channel-name=random --template-file ./assets/vai.j2
poetry run ccb dm-group --matches-json=./test.json --template-file=./assets/vai-dm.j2

0 comments on commit a8f1429

Please sign in to comment.