diff --git a/.github/actions/lp-snap-build/action.yml b/.github/actions/lp-snap-build/action.yml index b3b7a8f866b7..a4e15d2de118 100644 --- a/.github/actions/lp-snap-build/action.yml +++ b/.github/actions/lp-snap-build/action.yml @@ -59,6 +59,6 @@ runs: # Update system PATH to add ~/go/bin if needed echo "${PATH}" - if ! echo "${PATH}" | grep -F go/bin; then + if ! echo "${PATH}" | grep -qF '/go/bin:'; then echo "$(go env GOPATH)/bin" >> "${GITHUB_PATH}" fi