-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1001 Bytes
/
ingest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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