Update README.md #15
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 README | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.x" | |
| - name: List .java files (debug) | |
| run: | | |
| echo "Listing solution files:" | |
| find Easy Medium Hard -type f -name '*.java' 2>/dev/null | sort || true | |
| echo "Total:" | |
| find Easy Medium Hard -type f -name '*.java' 2>/dev/null | wc -l || true | |
| - name: Run update script | |
| run: python .github/scripts/update_readme.py | |
| - name: Show updated README (debug) | |
| run: cat README.md | |
| - name: Commit changes | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add README.md | |
| git commit -m "Update progress in README [skip ci]" || echo "No changes to commit" | |
| git push |