Skip to content

Commit

Permalink
[refactor] run_data_sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jujimeizuo committed Sep 9, 2023
1 parent 5ba3bad commit ae51957
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/run_data_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ env:
RUN_TYPE: keep # support strava/nike/garmin/garmin_cn/keep/only_gpx/nike_to_strava/strava_to_garmin/strava_to_garmin_cn/garmin_to_strava/garmin_to_strava_cn, Please change the 'pass' it to your own
ATHLETE: 馮則濤
TITLE: jujimeizuo Running
MIN_GRID_DISTANCE: 10 # change min distance here
TITLE_GRID: Over 2km Runs # also here
MIN_GRID_DISTANCE: 1 # change min distance here
TITLE_GRID: Over 1km Runs # also here
GITHUB_NAME: jujimeizuo
GITHUB_EMAIL: [email protected]

# IGNORE_BEFORE_SAVING: True # if you want to ignore some data before saving, set this to True
IGNORE_START_END_RANGE: 10 # Unit meter
IGNORE_START_END_RANGE: 1 # Unit meter
# Dont making this huge, just picking points you needing. https://developers.google.com/maps/documentation/utilities/polylineutility using this tool to making your polyline
IGNORE_POLYLINE: "ktjrFoemeU~IorGq}DeB"
IGNORE_RANGE: 10 # Unit meter
IGNORE_RANGE: 1 # Unit meter
SAVE_DATA_IN_GITHUB_CACHE: true # if you deploy in the vercal, check the README
DATA_CACHE_PREFIX: "track_data"
BUILD_GH_PAGES: false
Expand Down Expand Up @@ -96,6 +96,10 @@ jobs:
if: env.RUN_TYPE == 'keep'
run: |
python scripts/keep_sync.py ${{ secrets.KEEP_MOBILE }} ${{ secrets.KEEP_PASSWORD }} --with-gpx
python scripts/gen_svg.py --from-db --title "${{ env.TITLE }}" --type github --athlete "${{ env.ATHLETE }}" --special-distance 10 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github.svg --use-localtime --min-distance 0.5
python scripts/gen_svg.py --from-db --title "${{ env.TITLE_GRID }}" --type grid --athlete "${{ env.ATHLETE }}" --output assets/grid.svg --special-color yellow --special-color2 red --special-distance 20 --special-distance2 40 --use-localtime --min-distance "${{ env.MIN_GRID_DISTANCE }}"
python scripts/gen_svg.py --from-db --type circular --use-localtime
python scripts/gen_svg.py --from-db --year $(date +"%Y") --language zh_CN --title "$(date +"%Y") Running" --type github --athlete "${{ env.ATHLETE }}" --special-distance 10 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github_$(date +"%Y").svg --use-localtime --min-distance 0.5
- name: Run sync Strava script
if: env.RUN_TYPE == 'strava'
Expand Down
2 changes: 2 additions & 0 deletions assets/year_2019.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/year_2020.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

1 comment on commit ae51957

@vercel
Copy link

@vercel vercel bot commented on ae51957 Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.