From 7c6c34aa1ea699a482279a1ba94b81e1fcaed7b5 Mon Sep 17 00:00:00 2001 From: "Christopher J. Tannum" Date: Fri, 30 Jun 2023 13:00:04 +0200 Subject: [PATCH] fix: wrong conditional CI run for deploy doc (#3444) --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21cf14c01f6..f097356f761 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -314,6 +314,7 @@ jobs: yarn build:fast - name: Upload documentation artifact + if: ${{ contains(github.event.pull_request.labels.*.name, 'preview-docs') }} uses: actions/upload-artifact@v3 with: name: preview-docs @@ -321,7 +322,7 @@ jobs: deploy-preview-documentation: needs: [changes, build-preview-documentation] - if: ${{ needs.changes.outputs.should-run == 'true' || contains(github.event.pull_request.labels.*.name, 'preview-docs') }} + if: ${{ needs.changes.outputs.should-run == 'true' && contains(github.event.pull_request.labels.*.name, 'preview-docs') }} name: Publish documentation preview # Ensures that there only will be executed one "instance" of this operation # across all ongoing Github Action executions