From 60630f466579ba1c3a03b56b7bd92be271258227 Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Wed, 29 May 2024 15:41:58 +0300 Subject: [PATCH] fix(ci): update fallback value and conditions --- .github/workflows/example-previews.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/example-previews.yml b/.github/workflows/example-previews.yml index c38fb2a39ead..dbd0339f72a7 100644 --- a/.github/workflows/example-previews.yml +++ b/.github/workflows/example-previews.yml @@ -35,8 +35,8 @@ jobs: # Set job outputs to values from filter step outputs: examples: ${{ steps.filter.outputs.changes }} - all_examples: ${{ steps.deploy-previews-label.outputs.all_examples || '[]' }} - dispatch_example: ${{ join(inputs.example_name) || '[]' }} + all_examples: ${{ steps.deploy-previews-label.outputs.all_examples || false }} + dispatch_example: ${{ join(inputs.example_name) || false }} steps: - name: Get PR labels id: pr-labels @@ -112,12 +112,12 @@ 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 matrix: - example: ${{ fromJSON(needs.changes.outputs.all_examples || needs.changes.outputs.examples || needs.changes.outputs.dispatch_example) }} + example: ${{ fromJSON(needs.changes.outputs.examples || needs.changes.outputs.all_examples || needs.changes.outputs.dispatch_example) }} steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v3