Skip to content

Commit

Permalink
fix(ci): update fallback value and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed May 29, 2024
1 parent 9477005 commit 60630f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/example-previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60630f4

Please sign in to comment.