Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Dec 26, 2020
1 parent 1477bca commit 09ff058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup-goreleaser/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ runs:
steps:
- name: Install goreleaser
run: |
set -eux
if [ -z '${{ inputs.goreleaser-version }}' ]; then
export GORELEASER_VERSION=$(curl -fsi "https://github.com/goreleaser/goreleaser/releases/latest" | awk -F/ '/^(L|l)ocation:/ {print $(NF)}')
export GORELEASER_VERSION="$(curl -fsi "https://github.com/goreleaser/goreleaser/releases/latest" | awk -F/ '/^(L|l)ocation:/ {print $(NF)}' | tr '\r' '\n')"
else
export GORELEASER_VERSION="${{ inputs.goreleaser-version }}"
fi
Expand Down

0 comments on commit 09ff058

Please sign in to comment.