Skip to content

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo… #10307

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo…

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo… #10307

name: Publish to Github Pages
on:
push:
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
CLIENT_ID: ${{secrets.CLIENT_ID}}
CLIENT_SECRET: ${{secrets.CLIENT_SECRET}}
REFRESH_TOKEN: ${{secrets.REFRESH_TOKEN}}
jobs:
run:
name: Publish JSON
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.x"
- name: Keep npm cache around to speed up installs
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci --no-audit
- name: Clone data-files from gh-pages branch
run:
git clone https://github.com/Lenakh97/Nordic-strava-application
--branch gh-pages --depth 1 data
- name: Update JSON
run: npx tsx fetch.ts
- name: Summarize JSON
run: npx tsx writeSummarizedData.ts
- name: Commit updated data files
working-directory: data
run: |
echo "machine github.com login accesskey password ${{ secrets.TOKEN }}" > ~/.netrc
git config --global user.email "actions@example.com"
git config --global user.name "GitHub Actions"
git add -A
git commit -m "update JSON"
git push