2525
2626env :
2727 # please change to your own config.
28- RUN_TYPE : pass # support strava/nike/garmin/coros/garmin_cn/garmin_sync_cn_global/keep/only_gpx/only_fit/nike_to_strava/strava_to_garmin/tcx_to_garmin/strava_to_garmin_cn/garmin_to_strava/garmin_to_strava_cn/codoon/ oppo/db_updater, Please change the 'pass' it to your own
28+ RUN_TYPE : pass # support strava/nike/garmin/coros/garmin_cn/garmin_sync_cn_global/keep/only_gpx/only_fit/nike_to_strava/strava_to_garmin/tcx_to_garmin/strava_to_garmin_cn/garmin_to_strava/garmin_to_strava_cn/oppo/db_updater, Please change the 'pass' it to your own
2929 ATHLETE : ben_29
3030 TITLE : Workouts
3131 MIN_GRID_DISTANCE : 10 # change min distance here
@@ -109,55 +109,44 @@ jobs:
109109 if : env.RUN_TYPE == 'coros'
110110 run : |
111111 python run_page/coros_sync.py ${{ secrets.COROS_ACCOUNT }} ${{ secrets.COROS_PASSWORD }}
112- # If you only want to sync ` type running` add args --only-run, default script is to sync all data (rides , swims, strengths trains, hikes, runs, etc.).
112+ # If you only want to sync ' type running' add args --only-run, default script is to sync all data (rides , swims, strengths trains, hikes, runs, etc.).
113113 # python run_page/coros_sync.py ${{ secrets.COROS_ACCOUNT }} ${{ secrets.COROS_PASSWORD }} --only-run
114114
115115 - name : Run sync Keep_to_strava script
116116 if : env.RUN_TYPE == 'keep_to_strava_sync'
117117 run : |
118118 python run_page/keep_to_strava_sync.py ${{ secrets.KEEP_MOBILE }} ${{ secrets.KEEP_PASSWORD }} ${{ secrets.STRAVA_CLIENT_ID }} ${{ secrets.STRAVA_CLIENT_SECRET }} ${{ secrets.STRAVA_CLIENT_REFRESH_TOKEN }} --sync-types running cycling hiking
119- # If you only want to sync ` type running` modify args --sync-types running, default script is to sync all data (rides, hikes and runs).
119+ # If you only want to sync ' type running' modify args --sync-types running, default script is to sync all data (rides, hikes and runs).
120120
121121 - name : Run sync Strava script
122122 if : env.RUN_TYPE == 'strava'
123123 run : |
124124 python run_page/strava_sync.py ${{ secrets.STRAVA_CLIENT_ID }} ${{ secrets.STRAVA_CLIENT_SECRET }} ${{ secrets.STRAVA_CLIENT_REFRESH_TOKEN }}
125- # If you only want to sync ` type running` add args --only-run, default script is to sync all data (rides and runs).
125+ # If you only want to sync ' type running' add args --only-run, default script is to sync all data (rides and runs).
126126
127- - name : Run sync Codoon script
128- if : env.RUN_TYPE == 'codoon'
129- run : |
130- python run_page/codoon_sync.py ${{ secrets.CODOON_MOBILE }} ${{ secrets.CODOON_PASSWORD }}
131-
132- - name : Run sync tcx to Garmin script
133- if : env.RUN_TYPE == 'tcx_to_garmin'
134- run : |
135- # python run_page/tcx_to_garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING }}
136- python run_page/tcx_to_garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING_CN }} --is-cn
137-
138- # for garmin if you want generate `tcx` you can add --tcx command in the args.
127+ # for garmin if you want generate 'tcx' you can add --tcx command in the args.
139128 - name : Run sync Garmin script
140129 if : env.RUN_TYPE == 'garmin'
141130 run : |
142- # make garmin secret string `python run_page/get_garmin_secret.py ${email} ${password}
143131 python run_page/garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING }}
144- # If you only want to sync `type running` add args --only-run, default script is to sync all data (rides and runs).
132+ # make garmin secret string 'python run_page/get_garmin_secret.py ${email} ${password}'
133+ # If you only want to sync 'type running' add args --only-run, default script is to sync all data (rides and runs).
145134 # python run_page/garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING }} --only-run
146135
147136 - name : Run sync Garmin CN script
148137 if : env.RUN_TYPE == 'garmin_cn'
149138 run : |
150- # make garmin secret string `python run_page/get_garmin_secret.py ${email} ${password} --is-cn
151139 python run_page/garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING_CN }} --is-cn
152- # If you only want to sync `type running` add args --only-run, default script is to sync all data (rides and runs).
140+ # make garmin secret string 'python run_page/get_garmin_secret.py ${email} ${password} --is-cn'
141+ # If you only want to sync 'type running' add args --only-run, default script is to sync all data (rides and runs).
153142 # python run_page/garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING_CN }} --only-run --is-cn
154143
155144 - name : Run sync Garmin CN to Garmin script
156145 if : env.RUN_TYPE == 'garmin_sync_cn_global'
157146 run : |
158- # make garmin secret string `python run_page/garmin_sync_cn_global.py ${email} ${password} --is-cn
159147 python run_page/garmin_sync_cn_global.py ${{ secrets.GARMIN_SECRET_STRING_CN }} ${{ secrets.GARMIN_SECRET_STRING }}
160- # If you only want to sync `type running` add args --only-run, default script is to sync all data (rides and runs).
148+ # make garmin secret string 'python run_page/garmin_sync_cn_global.py ${email} ${password} --is-cn'
149+ # If you only want to sync 'type running' add args --only-run, default script is to sync all data (rides and runs).
161150 # python run_page/garmin_sync_cn_global.py ${{ secrets.GARMIN_SECRET_STRING_CN }} ${{ secrets.GARMIN_SECRET_STRING }} --only-run
162151
163152 - name : Run sync Only GPX script
@@ -227,7 +216,13 @@ jobs:
227216 env :
228217 BIRTHDAY_MONTH : ${{ env.BIRTHDAY_MONTH }}
229218 run : |
230- python run_page/gen_svg.py --from-db --type monthoflife --birth "${{env.BIRTHDAY_MONTH}}" --special-color '#f9d367' --special-color2 '#f0a1a8' --output assets/mol.svg --use-localtime --athlete "${{env.ATHLETE}}" --title 'Month of Life'
219+ python run_page/gen_svg.py --from-db --type monthoflife --birth "${{env.BIRTHDAY_MONTH}}" --special-color "#f9d367" --special-color2 "#f0a1a8" --output assets/mol_running.svg --use-localtime --athlete "${{env.ATHLETE}}" --title "Runner Month of Life" --sport-type running
220+ python run_page/gen_svg.py --from-db --type monthoflife --birth "${{env.BIRTHDAY_MONTH}}" --special-color "#f9d367" --special-color2 "#f0a1a8" --output assets/mol_walking.svg --use-localtime --athlete "${{env.ATHLETE}}" --title "Walker Month of Life" --sport-type walking
221+ python run_page/gen_svg.py --from-db --type monthoflife --birth "${{env.BIRTHDAY_MONTH}}" --special-color "#f9d367" --special-color2 "#f0a1a8" --output assets/mol_hiking.svg --use-localtime --athlete "${{env.ATHLETE}}" --title "Hiker Month of Life" --sport-type hiking
222+ python run_page/gen_svg.py --from-db --type monthoflife --birth "${{env.BIRTHDAY_MONTH}}" --special-color "#f9d367" --special-color2 "#f0a1a8" --output assets/mol_cycling.svg --use-localtime --athlete "${{env.ATHLETE}}" --title "Cyclist Month of Life" --sport-type cycling
223+ python run_page/gen_svg.py --from-db --type monthoflife --birth "${{env.BIRTHDAY_MONTH}}" --special-color "#f9d367" --special-color2 "#f0a1a8" --output assets/mol.svg --use-localtime --athlete "${{env.ATHLETE}}" --title "Month of Life" --sport-type all
224+ python run_page/gen_svg.py --from-db --type monthoflife --birth "${{env.BIRTHDAY_MONTH}}" --special-color "#f9d367" --special-color2 "#f0a1a8" --output assets/mol_swimming.svg --use-localtime --athlete "${{env.ATHLETE}}" --title "Swimmer Month of Life" --sport-type swimming
225+ python run_page/gen_svg.py --from-db --type monthoflife --birth "${{env.BIRTHDAY_MONTH}}" --special-color "#f9d367" --special-color2 "#f0a1a8" --output assets/mol_skiing.svg --use-localtime --athlete "${{env.ATHLETE}}" --title "Skier Month of Life" --sport-type skiing
231226
232227 - name : Save data to parqent
233228 if : env.SAVE_TO_PARQENT == 'true'
@@ -241,8 +236,8 @@ jobs:
241236 git config --local user.email "action@github.com"
242237 git config --local user.name "GitHub Action"
243238 git add .
244- git commit -m 'Add new workouts' || echo " nothing to commit"
245- git push || echo " nothing to push"
239+ git commit -m 'Add new workouts' || echo ' nothing to commit'
240+ git push || echo ' nothing to push'
246241
247242 - name : Set Output
248243 id : set_output
0 commit comments