File tree Expand file tree Collapse file tree 1 file changed +20
-15
lines changed
Expand file tree Collapse file tree 1 file changed +20
-15
lines changed Original file line number Diff line number Diff line change 11name : convert readme
2- ' on ' :
2+
3+ on :
34 push :
45 tags :
5- - ' *'
6+ - " *"
7+
8+ permissions :
9+ contents : write
10+
611jobs :
712 convert :
813 runs-on : ubuntu-latest
14+
915 steps :
10- - uses : actions/checkout@v2
11- - name : convert to rst
16+ - uses : actions/checkout@v4
17+
18+ - name : Install pandoc
1219 run : |
1320 wget https://github.com/jgm/pandoc/releases/download/2.19.2/pandoc-2.19.2-1-amd64.deb
1421 sudo dpkg -i pandoc-2.19.2-1-amd64.deb
22+
23+ - name : Convert README.md to docs/index.rst
24+ run : |
1525 pandoc README.md --from markdown -f gfm --to rst -s -o docs/index.rst
1626 cat docs/appending >> docs/index.rst
17- - name : checkout master
18- run : |
19- git fetch origin master
20- git checkout master
21- git pull origin master
22- - name : commit index.rst
27+
28+ - name : Commit and push updated index.rst
2329 run : |
24- git config --global user.name ' YoEnte'
25- git config --global user.email ' [email protected] ' 30+ git config --global user.name " YoEnte"
31+ git config --global user.email " [email protected] " 2632 git add docs/index.rst
27- git commit -m "docs: auto update index.rst"
28- git push origin master --force-with-lease
29- continue-on-error : true
33+ git commit -m "docs: auto update index.rst" || exit 0
34+ git push https://x-access-token:${{ secrets.PAT_PUSH_MASTER }}@github.com/software-challenge/player_python.git HEAD:master
You can’t perform that action at this time.
0 commit comments