diff --git a/.github/workflows/example-previews.yml b/.github/workflows/example-previews.yml index 707bab8ebb60..08b4b9e74643 100644 --- a/.github/workflows/example-previews.yml +++ b/.github/workflows/example-previews.yml @@ -4,6 +4,9 @@ on: issue_comment: types: [created] pull_request: + paths: + - "packages/**" + - "examples/**" types: - opened - synchronize @@ -34,7 +37,7 @@ jobs: pull-requests: read # Set job outputs to values from filter step outputs: - examples: ${{ steps.filter.outputs.changes }} + examples: ${{ steps.filter.outputs.changes || false }} all_examples: ${{ steps.deploy-previews-label.outputs.all_examples || false }} dispatch_example: ${{ join(inputs.example_name) || false }} steps: @@ -114,7 +117,7 @@ jobs: preview: runs-on: ubuntu-latest needs: changes - if: ${{ needs.changes.outputs.all_examples || needs.changes.outputs.examples != '[]' || needs.changes.outputs.dispatch_example }} + if: ${{ needs.changes.outputs.all_examples || needs.changes.outputs.examples || needs.changes.outputs.dispatch_example }} strategy: fail-fast: false max-parallel: 6