diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 15c73c8d3..658c7d456 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -155,7 +155,10 @@ jobs: - name: Checkout if: > env.MATCH == 'true' - && needs.check.outputs.any_modified == 'true' + && ( + needs.check.outputs.any_modified == 'true' + || contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) + ) uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha || github.ref }}