Update GitHub Actions workflow dependencies #132
This file contains 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: wiki | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
wiki: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository }}.wiki | |
path: wiki | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
- run: | | |
rm -rf wiki/* | |
- run: | | |
go run . --help > wiki/Home.mediawiki | |
go run . --help-ranking > wiki/Ranking.mediawiki | |
go run . --help-filter > wiki/Filtering.mediawiki | |
- run: | | |
cd wiki | |
git config --global user.name "actions-user" | |
git config --global user.email "[email protected]" | |
git add . && git diff-index --quiet HEAD && exit 0 | |
git commit -m "Add changes" && git push |