Skip to content

solve 933

solve 933 #7

Workflow file for this run

name: Update README on LeetCode push
on:
push:
paths:
- 'problems/python/**.py'
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Run update script
run: |
python .github/scripts/update_readme.py
- name: Commit and Push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Update README with new LeetCode log" || echo "No changes to commit"
git push