Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Added check if workaround is necessary #6610
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jun 28, 2023
1 parent 987aefc commit 1ef69b8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ jobs:

- name: Workaround
run: |
curl --silent --location --fail https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_Linux_x86_64.tar.gz \
| tar --extract --gzip --directory=helper/usr/local/bin/ goreleaser
if file helper/usr/local/bin/goreleaser | grep -q amd64; then
echo "goreleaser is already installed"
else
curl --silent --location --fail https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_Linux_x86_64.tar.gz \
| tar --extract --gzip --directory=helper/usr/local/bin/ goreleaser
fi
- name: Build and release binaries
env:
Expand Down

0 comments on commit 1ef69b8

Please sign in to comment.