-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 975 Bytes
/
fetch-docs.yml
File metadata and controls
36 lines (29 loc) · 975 Bytes
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
name: Fetch Zenoti Documentation
on:
schedule:
- cron: '0 */12 * * *' # Every 12 hours
workflow_dispatch: # Manual trigger
jobs:
fetch-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install playwright beautifulsoup4
playwright install chromium
playwright install-deps
- name: Run scraper
run: python scripts/fetch_zenoti_docs.py
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add docs/
git diff --staged --quiet || git commit -m "Update Zenoti docs - $(date -u +%Y-%m-%dT%H:%M:%SZ)"
git push