Skip to content

Commit 5e2ede6

Browse files
authored
Don't run deploy-docs-preview if the event does not have PRs (#3047)
1 parent 19fb6ec commit 5e2ede6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/after-ci.yml

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

4242
deploy-docs-preview:
4343
runs-on: ubuntu-latest
44-
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_branch != 'main'
44+
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.pull_requests[0] != null
4545
environment:
4646
name: deploy-docs-preview
4747

0 commit comments

Comments
 (0)