Skip to content

Fetch Daily Data

Fetch Daily Data #267

Workflow file for this run

name: Fetch Daily Data
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
run-fetch:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run fetch-daily.js
run: node scripts/fetch-daily.js
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Commit and push changes
run: |
git add .
git commit -m "Update daily LeetCode stats"
git push
continue-on-error: true