Process a value with a jq script and output to a step output.
Required The input value to be processed by script.
Required The JQ script.
Set to "true"
to emit compact output from jq.
Set to "true"
to have jq emit raw strings.
The output of the JQ script.
uses: edwardgeorge/jq-action@main
with:
input: "[{\"num\": 1}, {\"num\": 2}]"
script: "[.[] | select(.num == 1) | .num]"