Skip to content

Commit

Permalink
added project
Browse files Browse the repository at this point in the history
Signed-off-by: EraKin575 <[email protected]>
  • Loading branch information
EraKin575 committed Jun 13, 2024
1 parent 03827a4 commit 1c41313
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/actions/setup-go-tip/action.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
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

0 comments on commit 1c41313

Please sign in to comment.