Skip to content

JQ Script

Actions
Run JQ on a JSON value
v1
Latest
Star (2)

Tags

 (1)

JQ Action

Process a value with a jq script and output to a step output.

Inputs

input

Required The input value to be processed by script.

script

Required The JQ script.

compact

Set to "true" to emit compact output from jq.

raw-output

Set to "true" to have jq emit raw strings.

Outputs

output

The output of the JQ script.

Example usage

uses: edwardgeorge/jq-action@main
with:
  input: "[{\"num\": 1}, {\"num\": 2}]"
  script: "[.[] | select(.num == 1) | .num]"

JQ Script is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run JQ on a JSON value
v1
Latest

Tags

 (1)

JQ Script is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.