Skip to content

Commit 1800eef

Browse files
authored
Add option to forcefully update sessions (#29)
Signed-off-by: Phil Dibowitz <phil@ipom.com>
1 parent fc14a36 commit 1800eef

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/sync.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
schedule:
55
- cron: '1,31 * * * *' # twice an hour
66
workflow_dispatch:
7+
inputs:
8+
update:
9+
description: 'Run sync with --update to force all sessions to be updated'
10+
type: boolean
11+
required: false
12+
default: false
713

814
jobs:
915
sync:
@@ -27,4 +33,11 @@ jobs:
2733
GUIDEBOOK_API_TOKEN: ${{ secrets.GUIDEBOOK_API_TOKEN }}
2834
GUIDEBOOK_JWT_TOKEN: ${{ secrets.GUIDEBOOK_JWT_TOKEN }}
2935
run: |
30-
python ./guidebook/sync_guidebook.py
36+
CMD="python ./guidebook/sync_guidebook.py"
37+
38+
if [[ "${{ github.event.inputs.update }}" == "true" ]]; then
39+
CMD="$CMD --update"
40+
fi
41+
42+
echo "Running: $CMD"
43+
$CMD

0 commit comments

Comments
 (0)