Skip to content

Appointment Manager #31229

Appointment Manager

Appointment Manager #31229

name: Appointment Manager
concurrency:
group: appointmentmanager
cancel-in-progress: false
on:
schedule:
- cron: "0 21 * * *"
push:
repository_dispatch:
types:
- webhook
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('WPAppointmentManager/requirements.txt') }}
- name: Install dependencies
working-directory: WPAppointmentManager
run: pip install -r requirements.txt
- name: Run
working-directory: WPAppointmentManager
run: python main.py
env:
COUCHDB_HOST: ${{ secrets.COUCHDB_HOST }}
COUCHDB_PASSWORD: ${{ secrets.COUCHDB_PASSWORD }}
COUCHDB_USER: ${{ secrets.COUCHDB_USER }}
WP_USER: ${{ secrets.WP_USER }}
WP_PASSWORD: ${{ secrets.WP_PASSWORD }}
MAIL_SERVER: ${{ secrets.MAIL_SERVER }}
MAIL_USER: ${{ secrets.MAIL_USER }}
MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }}
WC_URL: ${{ secrets.WC_URL }}
WC_KEY: ${{ secrets.WC_KEY }}
WC_SECRET: ${{ secrets.WC_SECRET }}