Add generate docs workflow #4
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: Generate docs | |
on: | |
pull_request: {} | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
USER: root | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run generate-docs | |
run: | | |
make generate-docs | |
- name: Assert no changes | |
run: | | |
git diff --quiet || (echo "Please run 'make generate-docs' and commit the changes" && exit 1) | |