Skip to content

Commit 645ba45

Browse files
authored
Add GOBIN to PATH in CI (#2105)
1 parent 26434e1 commit 645ba45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/actions/setup-go/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ runs:
4646
}
4747
Write-Host "✓ Verified: Microsoft Go is active"
4848
49+
- name: Add GOBIN to PATH
50+
shell: bash
51+
run: |
52+
GOBIN=$(go env GOBIN)
53+
if [ -z "$GOBIN" ]; then
54+
GOBIN="$(go env GOPATH)/bin"
55+
fi
56+
echo "$GOBIN" >> $GITHUB_PATH
57+
4958
# Avoid hardcoding the cache keys more than once.
5059
- name: Get cache info
5160
shell: bash

0 commit comments

Comments
 (0)