Skip to content

Commit

Permalink
Use sh in action (#15)
Browse files Browse the repository at this point in the history
Use sh in each action stanza
  • Loading branch information
dcarbone authored Nov 15, 2024
1 parent 36b228e commit e397bd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -42,15 +42,15 @@ runs:
- 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
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
shell: sh
env:
JQ_VERSION: '${{ inputs.version }}'
# language=sh
Expand Down

0 comments on commit e397bd8

Please sign in to comment.