Created
September 18, 2020 22:43
-
-
Save paul/8dd0fb3c5362dbae2c99f3802cb638b8 to your computer and use it in GitHub Desktop.
Revisions
-
paul created this gist
Sep 18, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ # .github/workflows/wiki_toc.yml name: Update wiki table of contents on: - gollum jobs: run: runs-on: ubuntu-latest container: image: ruby:2.6.6 steps: - uses: actions/checkout@v2 with: repository: ${{github.repository}}.wiki - name: Update Wiki TOC run: | gem install tocer -v '~>9.1' tocer -g - name: Commit changes run: | git config --local user.email "[email protected]" git config --local user.name "GitHub Action" git add . git commit -m "Updated TOC" - name: Push changes uses: ad-m/github-push-action@master with: repository: ${{github.repository}}.wiki github_token: ${{ secrets.GITHUB_TOKEN }}