mirror of
https://github.com/dcarbone/install-jq-action.git
synced 2026-02-12 19:16:56 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e6d52de30 | ||
|
|
8fd607321d |
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@@ -39,6 +39,7 @@ jobs:
|
||||
- 'false'
|
||||
version:
|
||||
- '1.7'
|
||||
- '1.7.1'
|
||||
include:
|
||||
- image: "ubuntu-latest"
|
||||
version: '1.6'
|
||||
@@ -277,6 +278,7 @@ jobs:
|
||||
- '1.5'
|
||||
- '1.6'
|
||||
- '1.7'
|
||||
- '1.7.1'
|
||||
name: "Test Action (Container) - (img: ${{ matrix.image }}; version: ${{ matrix.version }}; force: ${{ matrix.force }})"
|
||||
runs-on: ${{ matrix.image }}
|
||||
container:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# install-jq-action
|
||||
Multiplatform [jq](https://github.com/stedolan/jq) installer action
|
||||
|
||||
[](https://github.com/dcarbone/install-jq-action/actions/workflows/tests.yaml)
|
||||
[](https://github.com/dcarbone/install-jq-action/actions/workflows/tests.yaml)
|
||||
|
||||
This action is tested against the following versions of JQ:
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ branding:
|
||||
inputs:
|
||||
version:
|
||||
required: false
|
||||
description: "Version of jq to install"
|
||||
default: "1.7"
|
||||
description: "Version of jq to install."
|
||||
default: "1.7.1"
|
||||
force:
|
||||
required: false
|
||||
description: "If 'true', does not check for existing jq installation before continuing."
|
||||
@@ -41,7 +41,7 @@ runs:
|
||||
fi
|
||||
|
||||
- name: 'Install jq - Unix-ish non-1.7'
|
||||
if: (runner.os == 'Linux' || runner.os == 'macOS') && (inputs.version == '1.5' || inputs.version == '1.6') && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
|
||||
if: (runner.os == 'Linux' || runner.os == 'macOS') && (startsWith(inputs.version, '1.5') || startsWith(inputs.version, '1.6')) && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
|
||||
shell: sh
|
||||
env:
|
||||
JQ_VERSION: '${{ inputs.version }}'
|
||||
@@ -49,7 +49,7 @@ runs:
|
||||
run: ${GITHUB_ACTION_PATH}/scripts/unixish.sh
|
||||
|
||||
- name: 'Install jq - Unix-ish 1.7'
|
||||
if: (runner.os == 'Linux' || runner.os == 'macOS') && inputs.version == '1.7' && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
|
||||
if: (runner.os == 'Linux' || runner.os == 'macOS') && startsWith(inputs.version, '1.7') && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
|
||||
shell: sh
|
||||
env:
|
||||
JQ_VERSION: '${{ inputs.version }}'
|
||||
|
||||
Reference in New Issue
Block a user