Skip to content

Send reminder

Send reminder #388

Workflow file for this run

name: Send reminder
on:
schedule:
- cron: '00 19 * * 4'
- cron: '00 17 * * 6'
- cron: '00 9 * * 0'
- cron: '00 13 * * 0'
- cron: '40 16 * * 0'
jobs:
reminder-meeting:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # ratchet:actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@7f80679172b057fc5e90d70d197929d454754a5a # ratchet:actions/setup-python@v2
with:
python-version: "3.10"
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # ratchet:actions/cache@v2
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
pip install -r scripts/requirements.txt
pip install -r scripts/requirements-dev.txt
- name: Send message
env:
API_KEY: ${{ secrets.ZULIP_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ACCOUNT_SID: ${{ secrets.ACCOUNT_SID }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
run: python scripts/reminder.py
reminder-issues:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # ratchet:actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@7f80679172b057fc5e90d70d197929d454754a5a # ratchet:actions/setup-python@v2
with:
python-version: "3.10"
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # ratchet:actions/cache@v2
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
pip install -r scripts/requirements.txt
pip install -r scripts/requirements-dev.txt
- name: Send message
env:
API_KEY: ${{ secrets.ZULIP_API_KEY }}
REMINDER_TYPE: "ISSUES"
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ACCOUNT_SID: ${{ secrets.ACCOUNT_SID }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
run: python scripts/reminder.py