Skip to content

Commit

Permalink
ci: check against empty matrix input in job condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ehakan committed May 31, 2024
1 parent e86fd89 commit a67afd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
manifest-file: .release-please-manifest.json

upload-artifact:
if: ${{ needs.release-please.outputs.releases_created }}
if: ${{ needs.release-please.outputs.releases_created && fromJson(needs.release-please.outputs.release).paths_released != '' && fromJson(needs.release-please.outputs.release).paths_released != '[]' }}
needs:
- release-please
strategy:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
gh release upload ${{ steps.info.outputs.tag_name }} ${{ steps.info.outputs.artifact_path }}
create-module-tag:
if: ${{ needs.release-please.outputs.releases_created }}
if: ${{ needs.release-please.outputs.releases_created && fromJson(needs.release-please.outputs.release).paths_released != '' && fromJson(needs.release-please.outputs.release).paths_released != '[]' }}
needs:
- release-please
strategy:
Expand Down

0 comments on commit a67afd6

Please sign in to comment.