Overview Days #310
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: Overview Days | |
on: | |
schedule: | |
# Runs at 2:00 UTC every day | |
- cron: "0 2 * * *" | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install | |
run: npm install | |
- name: Run script | |
run: node scripts/overviewDays | |
- name: Commit and Push CSV | |
run: | | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
git add -f data/overviewDays.csv data/metaData.json | |
git commit -m "Update CSV file" || true # The script won't fail if there's nothing to commit | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |