push changes in workflow #4
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 Root Index | |
| on: | |
| push: | |
| branches: | |
| - gh-pages | |
| jobs: | |
| update_index: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| env: | |
| python_ver: 3.13 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ env.python_ver }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ env.python_ver }} | |
| - name: Install dependencies | |
| run: | | |
| cd .github | |
| cd scripts | |
| pip install -r requirements.txt | |
| - name: Update Index | |
| run: | | |
| cd .github | |
| cd scripts | |
| python update_index.py | |
| - name: Push Index Changes | |
| run: | | |
| git add . | |
| git -c user.name="github-actions[bot]" -c user.email="41898282+github-actions[bot]@users.noreply.github.com" commit -m "Auto update index" --author="cibere <71997063+cibere@users.noreply.github.com>" | |
| git push |