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 31, 2020
1 parent edc8cf8 commit 26e877c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup-goreleaser/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
# set -eux
echo "https://github.com/peaceiris/workflows/blob/main/setup-goreleaser/action.yml"
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)}' | tr '\r' '\n')"
export GORELEASER_VERSION="$(curl -fsi "https://github.com/goreleaser/goreleaser/releases/latest" | awk -F/ '/^(L|l)ocation:/ {print $(NF)}' | tr -d '\r')"
else
export GORELEASER_VERSION="${{ inputs.goreleaser-version }}"
fi
Expand Down

0 comments on commit 26e877c

Please sign in to comment.