From 814887ea1281979775eaeef6cc88606fdbad838a Mon Sep 17 00:00:00 2001 From: Dylan Reimerink Date: Sat, 7 Dec 2024 18:52:41 +0100 Subject: [PATCH] .github/workflows: Add generate-docs CI workflow This workflow will call the `make generate-docs` command and error if the command fails or if it causes any changes to the repository. Signed-off-by: Dylan Reimerink --- .github/workflows/generate-docs.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/generate-docs.yaml diff --git a/.github/workflows/generate-docs.yaml b/.github/workflows/generate-docs.yaml new file mode 100644 index 00000000..7a33f522 --- /dev/null +++ b/.github/workflows/generate-docs.yaml @@ -0,0 +1,22 @@ +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) +