diff --git a/.forgejo/workflows/setup-jq.yaml b/.forgejo/workflows/setup-jq.yaml new file mode 100644 index 0000000..0b2b4a5 --- /dev/null +++ b/.forgejo/workflows/setup-jq.yaml @@ -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