Skip to content

Commit

Permalink
Update action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone authored Oct 17, 2022
1 parent 6de0896 commit 4f82c42
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
description: "Filepath to YAML to parse"
yq-version:
required: false
default: "4.27.5"
default: "v4.27.5"
description: "Version of yq to install, if not already in path. Tested with >= 4.25."
debug:
required: false
Expand All @@ -22,7 +22,7 @@ inputs:
outputs:
yq-installed:
description: "'true' if yq was installed by this action"
value: "${{ steps.yq-check.outputs.found == 'false' }}"
value: "${{ steps.install-yq.outputs.installed == 'false' }}"

runs:
using: composite
Expand All @@ -35,20 +35,9 @@ runs:
exit 1
fi
- name: Check for yq
id: yq-check
shell: bash +e {0}
run: |
_yq_bin="$(which yq)"
if [ -f "${_yq_bin}" ]; then
echo "found=true" >> $GITHUB_OUTPUT
else
echo "found=false" >> $GITHUB_OUTPUT
fi
- name: 'Install yq (${{ inputs.yq-version }})'
uses: chrisdickinson/setup-yq@latest
if: steps.yq-check.outputs.found == 'false'
id: install-yq
uses: dcarbone/install-yq-[email protected]
with:
yq-version: '${{ inputs.yq-version }}'

Expand Down

0 comments on commit 4f82c42

Please sign in to comment.