mirror of
https://github.com/dcarbone/install-jq-action.git
synced 2026-02-12 11:06:55 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e397bd8743 | ||
|
|
36b228ee68 | ||
|
|
d5935278d5 |
6
.github/dependabot.yml
vendored
Normal file
6
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
2
.github/workflows/example-linux.yaml
vendored
2
.github/workflows/example-linux.yaml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Setup jq'
|
- name: 'Setup jq'
|
||||||
uses: dcarbone/install-jq-action@v2
|
uses: dcarbone/install-jq-action@v3
|
||||||
with:
|
with:
|
||||||
version: '${{ inputs.version }}'
|
version: '${{ inputs.version }}'
|
||||||
force: '${{ inputs.force }}'
|
force: '${{ inputs.force }}'
|
||||||
|
|||||||
2
.github/workflows/example-macos.yaml
vendored
2
.github/workflows/example-macos.yaml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Setup jq'
|
- name: 'Setup jq'
|
||||||
uses: dcarbone/install-jq-action@v2
|
uses: dcarbone/install-jq-action@v3
|
||||||
with:
|
with:
|
||||||
version: '${{ inputs.version }}'
|
version: '${{ inputs.version }}'
|
||||||
force: '${{ inputs.force }}'
|
force: '${{ inputs.force }}'
|
||||||
|
|||||||
2
.github/workflows/example-windows.yaml
vendored
2
.github/workflows/example-windows.yaml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Setup jq'
|
- name: 'Setup jq'
|
||||||
uses: dcarbone/install-jq-action@v2
|
uses: dcarbone/install-jq-action@v3
|
||||||
with:
|
with:
|
||||||
version: '${{ inputs.version }}'
|
version: '${{ inputs.version }}'
|
||||||
force: '${{ inputs.force }}'
|
force: '${{ inputs.force }}'
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ runs:
|
|||||||
- name: 'Check for jq - Unix-ish'
|
- name: 'Check for jq - Unix-ish'
|
||||||
id: jq-check-unix
|
id: jq-check-unix
|
||||||
if: (runner.os == 'Linux' || runner.os == 'macOS')
|
if: (runner.os == 'Linux' || runner.os == 'macOS')
|
||||||
shell: bash +e {0}
|
shell: sh +e {0}
|
||||||
# language=sh
|
# language=sh
|
||||||
run: |
|
run: |
|
||||||
_jq_bin="$(which jq)"
|
_jq_bin="$(which jq)"
|
||||||
@@ -42,7 +42,7 @@ runs:
|
|||||||
|
|
||||||
- name: 'Install jq - Unix-ish non-1.7'
|
- 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') && (inputs.version == '1.5' || inputs.version == '1.6') && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
|
||||||
shell: bash
|
shell: sh
|
||||||
env:
|
env:
|
||||||
JQ_VERSION: '${{ inputs.version }}'
|
JQ_VERSION: '${{ inputs.version }}'
|
||||||
# language=sh
|
# language=sh
|
||||||
@@ -50,7 +50,7 @@ runs:
|
|||||||
|
|
||||||
- name: 'Install jq - Unix-ish 1.7'
|
- 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') && inputs.version == '1.7' && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
|
||||||
shell: bash
|
shell: sh
|
||||||
env:
|
env:
|
||||||
JQ_VERSION: '${{ inputs.version }}'
|
JQ_VERSION: '${{ inputs.version }}'
|
||||||
# language=sh
|
# language=sh
|
||||||
|
|||||||
Reference in New Issue
Block a user