We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc14a36 commit 1800eefCopy full SHA for 1800eef
.github/workflows/sync.yml
@@ -4,6 +4,12 @@ on:
4
schedule:
5
- cron: '1,31 * * * *' # twice an hour
6
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
13
14
jobs:
15
sync:
@@ -27,4 +33,11 @@ jobs:
27
33
GUIDEBOOK_API_TOKEN: ${{ secrets.GUIDEBOOK_API_TOKEN }}
28
34
GUIDEBOOK_JWT_TOKEN: ${{ secrets.GUIDEBOOK_JWT_TOKEN }}
29
35
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