File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed
Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 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
137
148jobs :
159 sync :
3327 GUIDEBOOK_API_TOKEN : ${{ secrets.GUIDEBOOK_API_TOKEN }}
3428 GUIDEBOOK_JWT_TOKEN : ${{ secrets.GUIDEBOOK_JWT_TOKEN }}
3529 run : |
36- CMD="python ./guidebook/sync_guidebook.py --max-deletes 5 -u"
37-
38- if [[ "${{ github.event.inputs.update }}" == "true" ]]; then
39- CMD="$CMD --update"
40- fi
30+ CMD="python ./guidebook/sync_guidebook.py --max-deletes 5"
4131
4232 echo "Running: $CMD"
4333 $CMD
Original file line number Diff line number Diff line change 22requests
33pytz
44xdg-base-dirs
5+ dateutil
Original file line number Diff line number Diff line change @@ -764,8 +764,8 @@ def get_tokens(logger):
764764@click .option (
765765 "--update/--no-update" ,
766766 "-u" ,
767- default = False ,
768- help = "Update existing sessions." ,
767+ default = True ,
768+ help = "Update existing sessions. Does so idempotently, defaults to True. " ,
769769)
770770@click .option (
771771 "--delete-all/--no-delete-all" ,
You can’t perform that action at this time.
0 commit comments