From 1c41313ff49f20e6d1a41bea0253087729c38ab1 Mon Sep 17 00:00:00 2001 From: EraKin575 Date: Thu, 13 Jun 2024 12:36:49 +0530 Subject: [PATCH] added project Signed-off-by: EraKin575 --- .github/actions/setup-go-tip/action.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-go-tip/action.yml b/.github/actions/setup-go-tip/action.yml index cf74512..4ee364a 100644 --- a/.github/actions/setup-go-tip/action.yml +++ b/.github/actions/setup-go-tip/action.yml @@ -1,10 +1,10 @@ -# Inspired by https://github.com/actions/setup-go/issues/21#issuecomment-997208686 name: 'Install Go Tip' description: 'Install Go Tip toolchain' runs: using: "composite" steps: - name: Try to download Go Tip + id: try-to-download-go-tip shell: bash run: | set -euo pipefail @@ -48,4 +48,11 @@ runs: go install golang.org/dl/gotip@latest gotip download echo "GOROOT=$(go env GOROOT)" >> $GITHUB_ENV - echo "GOTIP_BIN=$(go env GOPATH)/bin/gotip" >> $GITHUB_ENV \ No newline at end of file + echo "GOTIP_BIN=$(go env GOPATH)/bin/gotip" >> $GITHUB_ENV + + - name: Fail if Go Tip is not installed + if: steps.try-to-download-go-tip.outputs.download_status == 'false' && failure() + shell: bash + run: | + echo "Both downloading and building Go Tip failed." + exit 1