Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
copy

GitHub Action

Install jq

v2.1.0

Install jq

copy

Install jq

Installs a version of jq into the job tool cache using simple shell scripts

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Install jq

uses: dcarbone/[email protected]

Learn more about this action in dcarbone/install-jq-action

Choose a version

install-jq-action

Multiplatform jq installer action

Tests - Setup jq Action

This action is tested against the following versions of JQ:

Index

  1. Examples
  2. Action Source
  3. Action Inputs
  4. Action Outputs

Examples

Action Inputs

version

  version:
    required: false
    description: "Version of jq to install"
    default: "1.7"

This must be a version with a corresponding release.

force

  force:
    required: false
    description: "If 'true', does not check for existing jq installation before continuing."
    default: 'false'

GitHub's own hosted runners come with a version of jq pre-installed.

Setting this to true will install the version you specify into the tool cache, superseding the preinstalled version. Setting this to true can also help ensure the same version is used across both self-hosted and remote runners.

Action Outputs

found

  found:
    description: "If 'true', jq was already found on this runner"

installed

  installed:
    description: "If 'true', jq was installed by this action"