Skip to content

Commit a7fed9c

Browse files
committed
ci: fix sed pattern for capturing PREV_PROVIDER_VERSION in schema-version-diff target at Makefile
previous pattern only handled := update the pattern to handle Makefile assignments ?= and = Signed-off-by: Erhan Cagirici <erhan@upbound.io>
1 parent e4a236a commit a7fed9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ crddiff:
282282

283283
schema-version-diff:
284284
@$(INFO) Checking for native state schema version changes
285-
@export PREV_PROVIDER_VERSION=$$(git cat-file -p "${GITHUB_BASE_REF}:Makefile" | sed -nr 's/^export[[:space:]]*TERRAFORM_PROVIDER_VERSION[[:space:]]*:=[[:space:]]*(.+)/\1/p'); \
285+
@export PREV_PROVIDER_VERSION=$$(git cat-file -p "${GITHUB_BASE_REF}:Makefile" | sed -nr 's/^export[[:space:]]*TERRAFORM_PROVIDER_VERSION[[:space:]]*[\?:]?=[[:space:]]*(.+)/\1/p'); \
286286
echo Detected previous Terraform provider version: $${PREV_PROVIDER_VERSION}; \
287287
echo Current Terraform provider version: $${TERRAFORM_PROVIDER_VERSION}; \
288288
mkdir -p $(WORK_DIR); \

0 commit comments

Comments
 (0)