Skip to content

Commit

Permalink
Merge pull request #125 from openshift-cherrypick-robot/cherry-pick-1…
Browse files Browse the repository at this point in the history
…24-to-release-0.17

[release-0.17] Skip previous version validation in CI
  • Loading branch information
openshift-merge-bot[bot] authored Mar 13, 2024
2 parents 9b53a7d + 5f1d568 commit ecd86c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export DEFAULT_CHANNEL
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - 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)
CI_VERSION := 9.9.9-dummy
VERSION ?= $(DEFAULT_VERSION)
PREVIOUS_VERSION ?= $(DEFAULT_VERSION)
export VERSION
Expand Down Expand Up @@ -213,10 +214,10 @@ 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 \
echo "Error: PREVIOUS_VERSION must be set for the selected VERSION"; \
exit 1; \
fi
@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

.PHONY: bundle-reset-date
bundle-reset-date: ## Reset bundle's createdAt
Expand Down

0 comments on commit ecd86c1

Please sign in to comment.