Skip to content
play

GitHub Action

setup-yq

v1.0.0 Latest version

setup-yq

play

setup-yq

Install a version of the venerable YQ tool

Installation

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

              

- name: setup-yq

uses: chrisdickinson/[email protected]

Learn more about this action in chrisdickinson/setup-yq

Choose a version

setup-yq

Sets up YQ, yet-another-markup-language-query-er, for use in YOUR github action workflow. (And it caches it, too!)

NB: This version of YQ purposefully diverges from JQ's argument format.

Usage

# in your job:
name: MY GREAT JOB
on:
  push:
    branches:
      - '*'
jobs:
  yq-example:
    name: YQ example!
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - uses: chrisdickinson/setup-yq@latest
    - name: Show folks how to run YQ:
      run: |
        yq --help

Hacking

After you've made changes, you must run npm run build and commit the dist/index.js, or else your changes won't take effect!

License

Apache-2.0