Skip to content

edwardgeorge/jq-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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]"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published