Skip to content

Commit

Permalink
let curl requests not fail silently
Browse files Browse the repository at this point in the history
  • Loading branch information
simbo committed Sep 6, 2022
1 parent 861e007 commit 5c16d05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ runs:
shell: bash
run: |
if [[ "${{ inputs.version }}" = "" ]]; then
valeVersion="$(curl -sfL https://api.github.com/repos/errata-ai/vale/releases/latest | grep '"tag_name":' | cut -d \" -f 4 | cut -d v -f 2)"
valeVersion="$(curl -sL https://api.github.com/repos/errata-ai/vale/releases/latest | grep '"tag_name":' | cut -d \" -f 4 | cut -d v -f 2)"
else
valeVersion="${{ inputs.version }}"
fi
Expand All @@ -63,7 +63,7 @@ runs:
exit 1
fi
echo "::group::Vale Installation"
curl -sfL https://github.com/errata-ai/vale/releases/download/v${valeVersion}/vale_${valeVersion}_Linux_64-bit.tar.gz -o vale.tar.gz
curl -sL https://github.com/errata-ai/vale/releases/download/v${valeVersion}/vale_${valeVersion}_Linux_64-bit.tar.gz -o vale.tar.gz
mkdir -p ${RUNNER_TEMP}/bin
tar -xvzf vale.tar.gz -C ${RUNNER_TEMP}/bin
rm vale.tar.gz
Expand All @@ -83,7 +83,7 @@ runs:
shell: bash
run: |
echo "::group::Reviewdog Installation"
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ${RUNNER_TEMP}/bin
curl -sL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ${RUNNER_TEMP}/bin
echo "::endgroup::"
- name: 🧑‍🏫 Run Vale with Reviewdog
Expand Down

0 comments on commit 5c16d05

Please sign in to comment.