Skip to content

Commit 4e6d52d

Browse files
authored
bumping default to jq 1.7.1 (#16)
* bumping default to jq 1.7.1
1 parent 8fd6073 commit 4e6d52d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- 'false'
4040
version:
4141
- '1.7'
42+
- '1.7.1'
4243
include:
4344
- image: "ubuntu-latest"
4445
version: '1.6'
@@ -277,6 +278,7 @@ jobs:
277278
- '1.5'
278279
- '1.6'
279280
- '1.7'
281+
- '1.7.1'
280282
name: "Test Action (Container) - (img: ${{ matrix.image }}; version: ${{ matrix.version }}; force: ${{ matrix.force }})"
281283
runs-on: ${{ matrix.image }}
282284
container:

action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ branding:
99
inputs:
1010
version:
1111
required: false
12-
description: "Version of jq to install"
13-
default: "1.7"
12+
description: "Version of jq to install."
13+
default: "1.7.1"
1414
force:
1515
required: false
1616
description: "If 'true', does not check for existing jq installation before continuing."
@@ -41,15 +41,15 @@ runs:
4141
fi
4242
4343
- name: 'Install jq - Unix-ish non-1.7'
44-
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')
44+
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')
4545
shell: sh
4646
env:
4747
JQ_VERSION: '${{ inputs.version }}'
4848
# language=sh
4949
run: ${GITHUB_ACTION_PATH}/scripts/unixish.sh
5050

5151
- name: 'Install jq - Unix-ish 1.7'
52-
if: (runner.os == 'Linux' || runner.os == 'macOS') && inputs.version == '1.7' && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
52+
if: (runner.os == 'Linux' || runner.os == 'macOS') && startsWith(inputs.version, '1.7') && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
5353
shell: sh
5454
env:
5555
JQ_VERSION: '${{ inputs.version }}'

0 commit comments

Comments
 (0)