Skip to content

Ingest

Ingest #1018

Workflow file for this run

name: Ingest
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *"
jobs:
ingest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- run: npm ci
- name: Ingest Strava Activities
env:
STRAVA_ACCESS_TOKEN: ${{ secrets.STRAVA_ACCESS_TOKEN }}
STRAVA_AFTER: ${{ github.event.inputs.after }}
run: node dist/strava-ingest.mjs
#- name: Ingest NPM Packages
# run: node dist/npm.mjs
- name: Ingest Mastodon
run: node dist/mastodon.mjs
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "Justin Poehnelt"
git add src/_data/strava.json
git add src/_data/mastodon.json
git add src/_data/npm.json
git commit -m "chore: update data" || true
git push