From cac7824dd0ea88512a5323ca1720429c4c3e963b Mon Sep 17 00:00:00 2001 From: jeanluc <2163936+lkubb@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:27:43 +0200 Subject: [PATCH] Fix and relax the conditional on docs deploy (#9) --- .github/workflows/ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b218aa0..5d9473d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,13 +70,11 @@ jobs: deploy-docs: name: Deploy Docs uses: salt-extensions/central-artifacts/.github/workflows/deploy-docs-action.yml@main - # Only build doc deployments from the main branch of the org repo and never for PRs. - if: > - ${{ inputs.deploy-docs && - github.repository_owner == 'salt-extensions' && - github.ref == 'refs/heads/main' && - github.event_name != 'pull_request' - }} + # Only build doc deployments from the default branch of the repo and never for PRs. + if: >- + github.event_name != 'pull_request' && + inputs.deploy-docs && + github.ref == format('refs/heads/{0}', github.event.repository.default_branch) needs: - docs - test