Skip to content

Commit d013f88

Browse files
authored
fix(ci): skip workflow publish when no packages found (#8454)
* fix: workflow publish package failure fix * fix: correct condition syntax for package publishing check
1 parent 790aaf9 commit d013f88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish-packages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ jobs:
9797
publish:
9898
needs: prepare-packages
9999
runs-on: ubuntu-latest
100+
# Skip if no packages need to be published
101+
if: fromJson(needs.prepare-packages.outputs.matrix).package[0] != null
100102
# Use the dynamic matrix from prepare-packages job to create parallel jobs for each package
101103
strategy:
102104
matrix: ${{ fromJson(needs.prepare-packages.outputs.matrix) }}

0 commit comments

Comments
 (0)