Fix capitlization issue #12
This file contains hidden or 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: Update LeetCode Grid | |
| on: | |
| push: | |
| paths: | |
| - "Solutions/**" | |
| - "Scripts/update_project_readme.py" | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: ["Sync Leetcode"] | |
| types: | |
| - completed | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| pip install pyyaml requests | |
| - name: Generate LeetCode README table | |
| run: | | |
| python ./Scripts/update_project_readme.py | |
| - name: Commit and push changes | |
| run: | | |
| git config --local user.name "github-actions[bot]" | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git add README.md Site_README.md | |
| git diff-index --quiet HEAD || git commit -m "[Auto] Update LeetCode README table" | |
| git push |