Return Reminder Manager #1196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Return Reminder Manager | |
on: | |
schedule: | |
- cron: "0 10 * * *" | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
environment: run-appointment-manager-env | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: pip-${{ hashFiles('ReturnReminderManager/requirements.txt') }} | |
- name: Install dependencies | |
working-directory: ReturnReminderManager | |
run: pip install -r requirements.txt | |
- name: Run | |
run: python ReturnReminderManager/main.py | |
env: | |
COUCHDB_HOST: ${{ secrets.COUCHDB_HOST }} | |
COUCHDB_PASSWORD: ${{ secrets.COUCHDB_PASSWORD }} | |
COUCHDB_USER: ${{ secrets.COUCHDB_USER }} | |
MAIL_SERVER: ${{ secrets.MAIL_SERVER }} | |
MAIL_USER: ${{ secrets.MAIL_USER }} | |
MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }} |