mirror of
https://github.com/dcarbone/install-jq-action.git
synced 2026-02-12 02:56:56 +08:00
32 lines
721 B
YAML
32 lines
721 B
YAML
name: "Setup jq Example - Linux"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
type: string
|
|
required: false
|
|
description: 'Version of jq to install'
|
|
default: '1.7.1'
|
|
force:
|
|
type: boolean
|
|
required: false
|
|
description: 'Do not check for existing jq installation before continuing.'
|
|
default: false
|
|
|
|
jobs:
|
|
example:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: 'Setup jq'
|
|
uses: dcarbone/install-jq-action@v3
|
|
with:
|
|
version: '${{ inputs.version }}'
|
|
force: '${{ inputs.force }}'
|
|
|
|
- name: 'Check jq'
|
|
# language=powershell
|
|
run: |
|
|
Get-Command "jq.exe"
|
|
jq.exe --version
|