Skip to content

Update TSP share price data #1683

Update TSP share price data

Update TSP share price data #1683

Workflow file for this run

name: Update TSP share price data
on:
schedule:
# 6:00 and 12:00 UTC daily
- cron: "0 6,12 * * *"
# Every 5 minutes, only for testing
# - cron: "*/5 * * * *"
jobs:
scheduled-prices-update:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: appToken
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install
- run: npm run update-prices
- run: git add _data/prices.json
- uses: dsanders11/github-app-commit-action@v1
with:
message: update share price data
token: ${{ steps.appToken.outputs.token }}
fail-on-no-changes: false