From d40ef6acb647a5a1291eb3d8e0246d42efee66e3 Mon Sep 17 00:00:00 2001 From: Michael Shitrit Date: Wed, 24 Jan 2024 13:54:34 +0200 Subject: [PATCH] skip previous version validation in ci Signed-off-by: Michael Shitrit --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 82b59da6..2417cbdd 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ OPERATOR_NAME ?= self-node-remediation # - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2) # - use environment variables to overwrite this value (e.g export VERSION=0.0.2) DEFAULT_VERSION := 0.0.1 +CI_VERSION := 9.9.9-ci VERSION ?= $(DEFAULT_VERSION) PREVIOUS_VERSION ?= $(DEFAULT_VERSION) export VERSION @@ -309,7 +310,7 @@ bundle-update: verify-previous-version ## Update CSV fields and validate the bun .PHONY: verify-previous-version verify-previous-version: ## Verifies that PREVIOUS_VERSION variable is set - @if [ $(VERSION) != $(DEFAULT_VERSION) ] && [ $(PREVIOUS_VERSION) = $(DEFAULT_VERSION) ]; then \ + @if [ $(VERSION) != $(DEFAULT_VERSION) && $(VERSION) != $(CI_VERSION) ] && [ $(PREVIOUS_VERSION) = $(DEFAULT_VERSION) ]; then \ echo "Error: PREVIOUS_VERSION must be set for the selected VERSION"; \ exit 1; \ fi