Skip to content

Commit 68c541b

Browse files
ci: Do not deploy draft PRs (#637)
1 parent b46f63d commit 68c541b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cicd-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
deploy:
6565
name: "Deploy"
66-
if: github.event_name == 'pull_request' && needs.details.outputs.membership || github.event_name == 'push' && needs.details.outputs.membership
66+
if: needs.details.outputs.membership && (github.event_name == 'push' || github.event.pull_request.draft == false)
6767
uses: ./.github/workflows/argocd-deploy.yml
6868
needs:
6969
- details

0 commit comments

Comments
 (0)