Skip to content

Update S&P 500 companies data #2212

Update S&P 500 companies data

Update S&P 500 companies data #2212

Workflow file for this run

name: Update S&P 500 companies data
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Run updater
run: make
- name: Commit and push
run: |
git config --global user.name "GitHub Action"
git config --global user.email "actions@users.noreply.github.com"
git add -A
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "Update data"
git push origin main
fi