We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ffa8d3 commit 4228de6Copy full SHA for 4228de6
2 files changed
.github/scripts/detect-changes.sh
@@ -30,8 +30,8 @@ done
30
echo "Found changed crates: ${changed_crates[*]}"
31
32
if [ ${#changed_crates[@]} -eq 0 ]; then
33
- echo "matrix={\"component\":[]}" >> "$GITHUB_OUTPUT"
+ echo "matrix=[]" >> "$GITHUB_OUTPUT"
34
else
35
json_array=$(printf '"%s",' "${changed_crates[@]}" | sed 's/,$//')
36
- echo "matrix={\"component\":[$json_array]}" >> "$GITHUB_OUTPUT"
+ echo "matrix=[$json_array]" >> "$GITHUB_OUTPUT"
37
fi
.github/workflows/cd.yml
@@ -29,7 +29,7 @@ jobs:
29
publish:
needs: detect-changes
- if: ${{ fromJson(needs.detect-changes.outputs.matrix).component != '[]' }}
+ if: ${{ needs.detect-changes.outputs.matrix != '[]' }}
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
0 commit comments