wip #6
Workflow file for this run
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: pages | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: alpine | |
steps: | |
- name: Setup | |
run: apk add mdbook git | |
- uses: actions/checkout@v4 | |
- name: Setup git config | |
run: | | |
git config --global --add safe.directory "${GITHUB_WORKSPACE}" | |
git config user.name bot | |
git config user.email "<>" | |
- name: Build | |
run: | | |
cd pizero | |
mdbook build | |
- name: Commit | |
run: | | |
if git commit -am 'bot: update pages'; then | |
git push origin HEAD:"${{ github.ref }}" | |
fi |