Skip to content

Time: 0 ms (100%), Space: 40.1 MB (89.94%) - LeetHub #36

Time: 0 ms (100%), Space: 40.1 MB (89.94%) - LeetHub

Time: 0 ms (100%), Space: 40.1 MB (89.94%) - LeetHub #36

Workflow file for this run

name: Update README
on:
push:
paths:
- "**/*"
schedule:
- cron: "0 0 * * *"
permissions:
contents: write
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
- name: Run Python script to update README
run: |
python update.py
- name: Commit README changes
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add README.md
git commit -m "Updated README with new progress"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}