From b68bda9ad61005e09e544880bf9d3941971024c6 Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Sat, 22 Feb 2025 23:16:15 -0500 Subject: [PATCH] Add workflow trigger, get the logs before the docs, fails if no docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com> --- .github/workflows/documentation.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 062637646e4..536b0d1791f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -9,6 +9,7 @@ on: - main - releasebranch_* pull_request: + workflow_dispatch: permissions: {} @@ -132,18 +133,18 @@ jobs: cd $MKDOCS_DIR mkdocs build - - name: Make the result available + - name: Make logs available uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 with: - name: mkdocs-site + name: grass-addon-build-logs if-no-files-found: warn - path: ${{ env.MKDOCS_DIR }}/site + path: addons-build-dir/docs/logs retention-days: 3 - - name: Make logs available + - name: Make the result available uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 with: - name: grass-addon-build-logs - if-no-files-found: warn - path: addons-build-dir/docs/logs + name: mkdocs-site + if-no-files-found: error + path: ${{ env.MKDOCS_DIR }}/site retention-days: 3