-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·47 lines (44 loc) · 1.36 KB
/
run-appointment-manager.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
37
38
39
40
41
42
43
44
45
46
47
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 }}