Update S&P 500 data #119
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update S&P 500 data | |
| on: | |
| schedule: | |
| - cron: '30 21 * * 1-5' | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: sp500-refresh | |
| cancel-in-progress: true | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - run: npm run fetch | |
| - name: Commit latest snapshot | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add data/sectors.json data/source-us500.json | |
| git commit -m "chore: refresh S&P 500 data ($(date -u +%F))" | |
| git push |