Data Fetch #108
This file contains 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: Data Fetch | |
on: | |
schedule: | |
- cron: "0 8 * * *" # Every day at 1am PDT | |
workflow_dispatch: | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
- name: Install npm packages | |
run: npm install --force | |
- name: Update README with latest team and sponsor data | |
run: npm run build:readme | |
- name: Setup Git | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<[email protected]>" | |
- name: Save updated files | |
run: | | |
chmod +x ./tools/commit-readme.sh | |
./tools/commit-readme.sh |