Skip to content

Commit

Permalink
make condition for gen step more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanales committed Apr 5, 2024
1 parent b0b8616 commit 3ac04d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/preview-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
outputs:
zip_paths: ${{ steps.prepare_zips.outputs.zip_paths }}
artifacts_created: ${{ steps.prepare_zips.outputs.zip_paths != '' }}
has_artifacts: ${{ steps.prepare_zips.outputs.zip_paths != '' && 'true' || 'false' }}
steps:
- name: Checkout Code
uses: actions/checkout@v2
Expand All @@ -28,7 +29,7 @@ jobs:

generate-and-post-preview-links:
needs: prepare-and-upload-zips
if: needs.prepare-and-upload-zips.outputs.artifacts_created
if: needs.prepare-and-upload-zips.outputs.has_artifacts == 'true'
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
Expand Down

0 comments on commit 3ac04d9

Please sign in to comment.