Skip to content

Commit 671dcde

Browse files
authored
Fix preview build on main (#1527)
* Fix preview build on main * Adjust condition
1 parent 8c4cbc7 commit 671dcde

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/preview-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ jobs:
155155
- name: Checkout
156156
if: >
157157
env.MATCH == 'true'
158-
&& needs.check.outputs.any_modified == 'true'
158+
&& (
159+
needs.check.outputs.any_modified == 'true'
160+
|| contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name)
161+
)
159162
uses: actions/checkout@v4
160163
with:
161164
ref: ${{ github.event.pull_request.head.sha || github.ref }}

0 commit comments

Comments
 (0)