diff --git a/go-build/action.yml b/go-build/action.yml index b4d8fb0..6b98e12 100644 --- a/go-build/action.yml +++ b/go-build/action.yml @@ -97,7 +97,7 @@ runs: if [ -z "$detected_version" ] && [ -f Dockerfile ]; then echo "Checking Dockerfile for golang..." >&2 version=$(grep -iF "FROM" Dockerfile | grep -F "golang:" | head -1 | \ - sed -n -E "s/.*golang:([0-9]+(\.[0-9]+)*)(-[^:]*)?.*/ \1/p" || echo "") + sed -n -E "s/.*golang:([0-9]+(\.[0-9]+)*)(-[^:]*)?.*/\1/p" || echo "") if [ -n "$version" ]; then version=$(clean_version "$version") if validate_version "$version"; then