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