Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Mar 15, 2024
1 parent 76b48a2 commit 6c2c3b7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/actions/build-matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,8 @@ runs:
cat matrix.json >> $GITHUB_OUTPUT
echo '' >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
if [ "$(cat matrix.json)" = '{ "include" : [] }\n' ]; then
echo "empty-matrix=true" >> $GITHUB_OUTPUT
else
echo "empty-matrix=false" >> $GITHUB_OUTPUT
fi
EMPTY_MATRIX=$(cat matrix.json | jq '.include | length == 0')
echo "empty-matrix=${EMPTY_MATRIX}" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
rm matrix.json
shell: bash

0 comments on commit 6c2c3b7

Please sign in to comment.