Skip to content

Commit

Permalink
Fix and relax the conditional on docs deploy (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkubb authored Aug 5, 2024
1 parent d76fdb3 commit cac7824
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cac7824

Please sign in to comment.