mirror of
https://github.com/dcarbone/install-jq-action.git
synced 2026-02-12 11:06:55 +08:00
love windows.
This commit is contained in:
23
action.yaml
23
action.yaml
@@ -40,18 +40,21 @@ runs:
|
||||
echo "found=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: 'Install jq - Unix-ish'
|
||||
if: (runner.os == 'Linux' || runner.os == 'macOS') && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
|
||||
- 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
|
||||
env:
|
||||
JQ_VERSION: '${{ inputs.version }}'
|
||||
# language=sh
|
||||
run: |
|
||||
if [[ '${{ inputs.version }}' == '1.5' ]] || [[ '${{ inputs.version }}' == '1.6' ]]; then
|
||||
$GITHUB_ACTION_PATH/scripts/unixish.sh
|
||||
else
|
||||
$GITHUB_ACTION_PATH/scripts/unixish-17.sh
|
||||
fi
|
||||
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
|
||||
env:
|
||||
JQ_VERSION: '${{ inputs.version }}'
|
||||
# language=sh
|
||||
run: ${{ github.action_path }/scripts/unixish-17.sh
|
||||
|
||||
- name: 'Check for jq - Windows-ish'
|
||||
id: jq-check-windows
|
||||
@@ -74,7 +77,7 @@ runs:
|
||||
env:
|
||||
JQ_VERSION: '${{ inputs.version }}'
|
||||
# language=powershell
|
||||
run: .\scripts\windowsish.ps1
|
||||
run: ${{ github.action_path }\scripts\windowsish.ps1
|
||||
|
||||
- name: 'Install jq - Windows-ish 1.7'
|
||||
if: runner.os == 'Windows' && inputs.version == '1.7' && (steps.jq-check-windows.outputs.found == 'false' || inputs.force == 'true')
|
||||
@@ -82,4 +85,4 @@ runs:
|
||||
env:
|
||||
JQ_VERSION: '${{ inputs.version }}'
|
||||
# language=powershell
|
||||
run: .\scripts\windowsish-17.ps1
|
||||
run: ${{ github.action_path }\scripts\windowsish-17.ps1
|
||||
|
||||
Reference in New Issue
Block a user