diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index a940523edf..47446522d3 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -1,9 +1,14 @@ name: Generate Documentation on: + pull_request: schedule: - cron: '0 0 * * *' +defaults: + run: + shell: bash + jobs: generate: if: github.repository == 'zeek/zeek' @@ -15,7 +20,6 @@ jobs: token: ${{ secrets.ZEEK_BOT_TOKEN }} - name: Sync Submodules - shell: bash run: | auth_header="$(git config --local --get http.https://github.com/.extraheader)" git submodule sync --recursive @@ -58,7 +62,6 @@ jobs: ( cd build && make -j 3 ) - name: Generate Docs - shell: bash run: | git config --global user.name zeek-bot git config --global user.email info@zeek.org @@ -76,16 +79,19 @@ jobs: echo "*** Check for Sphinx Warnings ***" grep -q WARNING make.out && exit 1 rm make.out - echo "*** Pushing zeek-docs Changes ***" + + - name: Push zeek-docs Changes + if: github.event_name == 'schedule' + run: | + cd doc git remote set-url origin "https://zeek-bot:${{ secrets.ZEEK_BOT_TOKEN }}@github.com/zeek/zeek-docs" git add scripts/ script-reference/ git status git commit -m "Generate docs" && git push || /bin/true - cd .. - name: Update zeek-docs Submodule + if: github.event_name == 'schedule' run: | - echo "*** Update zeek/doc Submodule ***" git config --global user.name zeek-bot git config --global user.email info@zeek.org git remote add auth "https://zeek-bot:${{ secrets.ZEEK_BOT_TOKEN }}@github.com/zeek/zeek" diff --git a/CHANGES b/CHANGES index 018814f73d..224ac14c0d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +5.0.0-dev.106 | 2022-02-09 15:15:21 -0800 + + * Expand generate-docs Github workflow to test docs build on PRs (Christian Kreibich, Corelight) + 5.0.0-dev.104 | 2022-02-09 13:14:04 -0800 * Updates to the cluster controller scripts to fix the docs build (Christian Kreibich, Corelight) diff --git a/VERSION b/VERSION index 235f320762..a246a917fe 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.0.0-dev.104 +5.0.0-dev.106