Skip to content

Commit

Permalink
github: add ~/go/bin to system PATH in actions/lp-snap-build
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Dec 11, 2024
1 parent edcc404 commit 0abe50e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/lp-snap-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ runs:
# Depends on Go being available which is the case in the GitHub Actions environment
set -eux
go install github.com/canonical/lxd-ci/lxd-snapcraft@latest
# Update system PATH to add ~/go/bin if needed
echo "${PATH}"
if ! echo "${PATH}" | grep -F go/bin; then
echo "$(go env GOPATH)/bin" >> "${GITHUB_PATH}"
fi

0 comments on commit 0abe50e

Please sign in to comment.