5 Commits

Author SHA1 Message Date
Daniel Carbone
4e6d52de30 bumping default to jq 1.7.1 (#16)
* bumping default to jq 1.7.1
2025-03-29 22:36:49 -05:00
Daniel Carbone
8fd607321d Update README.md
fixing name in badge
2025-03-05 05:17:29 -06:00
Daniel Carbone
e397bd8743 Use sh in action (#15)
Use sh in each action stanza
2024-11-15 05:46:41 -06:00
Daniel Carbone
36b228ee68 Add dependabot for github-actions 2024-11-14 19:47:37 -06:00
Daniel Carbone
d5935278d5 updating examples 2024-11-14 19:41:13 -06:00
7 changed files with 19 additions and 11 deletions

6
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View File

@@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Setup jq'
uses: dcarbone/install-jq-action@v2
uses: dcarbone/install-jq-action@v3
with:
version: '${{ inputs.version }}'
force: '${{ inputs.force }}'

View File

@@ -19,7 +19,7 @@ jobs:
runs-on: macos-latest
steps:
- name: 'Setup jq'
uses: dcarbone/install-jq-action@v2
uses: dcarbone/install-jq-action@v3
with:
version: '${{ inputs.version }}'
force: '${{ inputs.force }}'

View File

@@ -19,7 +19,7 @@ jobs:
runs-on: windows-latest
steps:
- name: 'Setup jq'
uses: dcarbone/install-jq-action@v2
uses: dcarbone/install-jq-action@v3
with:
version: '${{ inputs.version }}'
force: '${{ inputs.force }}'

View File

@@ -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:

View File

@@ -1,7 +1,7 @@
# install-jq-action
Multiplatform [jq](https://github.com/stedolan/jq) installer action
[![Tests - Setup jq Action](https://github.com/dcarbone/install-jq-action/actions/workflows/tests.yaml/badge.svg)](https://github.com/dcarbone/install-jq-action/actions/workflows/tests.yaml)
[![Tests - Install jq Action](https://github.com/dcarbone/install-jq-action/actions/workflows/tests.yaml/badge.svg)](https://github.com/dcarbone/install-jq-action/actions/workflows/tests.yaml)
This action is tested against the following versions of JQ:

View File

@@ -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."
@@ -30,7 +30,7 @@ runs:
- name: 'Check for jq - Unix-ish'
id: jq-check-unix
if: (runner.os == 'Linux' || runner.os == 'macOS')
shell: bash +e {0}
shell: sh +e {0}
# language=sh
run: |
_jq_bin="$(which jq)"
@@ -41,16 +41,16 @@ 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')
shell: bash
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 }}'
# language=sh
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')
shell: bash
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 }}'
# language=sh