This commit is contained in:
parent
8f481a779a
commit
884402ee0d
1 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/setup-jq.yaml
Normal file
31
.forgejo/workflows/setup-jq.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: "Setup jq"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
type: string
|
||||
required: false
|
||||
description: 'Version of jq to install'
|
||||
default: '1.6'
|
||||
force:
|
||||
type: boolean
|
||||
required: false
|
||||
description: 'Do not check for existing jq installation before continuing.'
|
||||
default: false
|
||||
|
||||
jobs:
|
||||
example:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: 'Setup jq'
|
||||
uses: https://github.com/dcarbone/install-jq-action.git@v2.1.0
|
||||
with:
|
||||
version: '${{ inputs.version }}'
|
||||
force: '${{ inputs.force }}'
|
||||
|
||||
- name: 'Check jq'
|
||||
# language=sh
|
||||
run: |
|
||||
which jq
|
||||
jq --version
|
Loading…
Reference in a new issue