add pat #99
Workflow file for this run
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: convert readme | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| convert: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pandoc | |
| run: | | |
| wget https://github.com/jgm/pandoc/releases/download/2.19.2/pandoc-2.19.2-1-amd64.deb | |
| sudo dpkg -i pandoc-2.19.2-1-amd64.deb | |
| - name: Convert README.md to docs/index.rst | |
| run: | | |
| pandoc README.md --from markdown -f gfm --to rst -s -o docs/index.rst | |
| cat docs/appending >> docs/index.rst | |
| - name: Commit and push updated index.rst | |
| run: | | |
| git config --global user.name "YoEnte" | |
| git config --global user.email "anthonyroeder@live.de" | |
| git add docs/index.rst | |
| git commit -m "docs: auto update index.rst" || exit 0 | |
| git push https://x-access-token:${{ secrets.PAT_PUSH_MASTER }}@github.com/software-challenge/player_python.git HEAD:master |