From 45a28a4955231d21dd272f3bd78af6b2597ac22f Mon Sep 17 00:00:00 2001 From: sadath-12 Date: Wed, 24 Jan 2024 14:58:33 +0530 Subject: [PATCH] c Signed-off-by: sadath-12 --- .github/workflows/validate-crd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-crd.yaml b/.github/workflows/validate-crd.yaml index 5fa25252b48..ba68487a0a1 100644 --- a/.github/workflows/validate-crd.yaml +++ b/.github/workflows/validate-crd.yaml @@ -28,7 +28,7 @@ jobs: # Check for version variable changes - old_version=$(sed -n 's/^const CustomResourceDefinitionSchemaVersion = "\(.*\)".*/\1/p' pkg/k8s/apis/cilium.io/v1alpha1/version.go) + old_version=$(git show ${{ github.event.pull_request.base.sha }}:pkg/k8s/apis/cilium.io/v1alpha1/version.go | sed -n 's/^const CustomResourceDefinitionSchemaVersion = "\(.*\)".*/\1/p') new_version=$(sed -n 's/^const CustomResourceDefinitionSchemaVersion = "\(.*\)".*/\1/p' pkg/k8s/apis/cilium.io/v1alpha1/version.go) echo "old_version=$old_version"