diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index b0335bba7bd5685c6406fa72423ab4b1adec49b5..5ca972e8935fdbb2f5a274af6eeca777878356a8 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -23,7 +23,7 @@ jobs: if [[ "${RELEASE_VERSION}" != "${CURRENT_VERSION}" ]]; then # bump kustomize - sed -i "s/\($1\/archive\/v\).*\(.zip\/\/$1-\).*\(\/config.*\)/\1${RELEASE_VERSION}\2${RELEASE_VERSION}\3/g" "manifests/bases/$1/kustomization.yaml" + sed -i "s/\($1\/archive\/\)v.*\(.zip\/\/$1-\).*\(\/config.*\)/\1${RELEASE_VERSION}\2${RELEASE_VERSION/v}\3/g" "manifests/bases/$1/kustomization.yaml" if [[ ! -z $(go list -m all | grep "github.com/fluxcd/$1/api" | awk '{print $2}') ]]; then # bump go mod