Skip to content

Commit 413a8a2

Browse files
authored
Add regular syncing (#26)
Signed-off-by: Phil Dibowitz <phil@ipom.com>
1 parent 3219ea1 commit 413a8a2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/sync.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: sync
2+
3+
on:
4+
schedule:
5+
- cron: '1,31 * * * *' # twice an hour
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.x'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install pyyaml requests
24+
25+
- name: Run sync script
26+
env:
27+
GUIDEBOOK_API_TOKEN: ${{ secrets.GUIDEBOOK_API_TOKEN }}
28+
GUIDEBOOK_JWT_TOKEN: ${{ secrets.GUIDEBOOK_JWT_TOKEN }}
29+
run: |
30+
python ./guidebook_sync/sync_guidebook.py

0 commit comments

Comments
 (0)