diff --git a/modules/olm-bundle/01_mod.mk b/modules/olm-bundle/01_mod.mk index 6b48bdb..8c4faca 100644 --- a/modules/olm-bundle/01_mod.mk +++ b/modules/olm-bundle/01_mod.mk @@ -93,9 +93,9 @@ olm-publish-$(subst /,-,$1): olm-bundle | $(NEEDS_GH) $(bin_dir)/scratch $(if $(and $(findstring redhat-openshift-ecosystem/certified-operators,$1),$(olm_project_id)), \ $(YQ) -i '.cert_project_id = "$(olm_project_id)"' operators/$(olm_project_name)/ci.yaml &&) \ git add operators/$(olm_project_name)/ci.yaml && \ - git commit -m "operator $(olm_project_name) ($(patsubst v%,%,$(VERSION)))" && \ - git push origin $(VERSION) && \ - $(GH) pr create --repo $1 --head $(firstword $(subst /, ,$2)):$(VERSION) --title "operator $(olm_project_name) ($(patsubst v%,%,$(VERSION)))" + git commit -m "operator $(olm_project_name) ($(VERSION))" && \ + git push -f -c "credential.helper=!$(GH) auth git-credential" origin $(VERSION) && \ + { $(GH) pr create --repo $1 --head $(firstword $(subst /, ,$2)):$(VERSION) --title "operator $(olm_project_name) ($(VERSION))" ||: } olm-publish: olm-publish-$(subst /,-,$1) endef