- Github ternary operator: Set a value if not defined
${{ x && <yes> || <false> }}
- Read data from a computed json
run: |
echo 'DATA=$(echo '["a", "b", "c"]' | jq -r '@json'' >> $GITHUB_OUTPUT
# workflow file
data: "${{ fromJSON(steps.<id>.outputs.DATA) }}"