update-documentation #10
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: Build Documentation | |
on: | |
repository_dispatch: | |
types: [update-documentation] | |
permissions: | |
contents: write | |
jobs: | |
update-documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Aftman | |
uses: ok-nick/[email protected] | |
- name: Git Submodule Update | |
run: git submodule update --init --remote --recursive --force | |
- name: Lune build website | |
run: | | |
lune run generator | |
- name: Commit changes | |
run: | | |
git config --global user.name 'Git bot' | |
git config --global user.email '[email protected]' | |
git add . | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git commit -m "Auto-update documentation '${{ github.event.client_payload.sha }}'" && git push || echo "No changes to commit" |