We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39936e7 commit e15ac1bCopy full SHA for e15ac1b
.github/workflows/crd-validation.yml
@@ -30,12 +30,13 @@ jobs:
30
31
- name: Run CRD Validation Check
32
run: |
33
- HEAD_REF="${{ github.head_ref }}"
34
- HEAD_SHA=$(git rev-parse $HEAD_REF)
+ git fetch origin ${{ github.base_ref }}:upstream_base
+ BASE_SHA=$(git rev-parse upstream_base)
35
+ echo "Validating against Base SHA: $BASE_SHA"
36
37
FAILED=0
38
for crd in config/crd/bases/*.yaml; do
- if ! crdify "git://${HEAD_SHA}?path=$crd" "git://HEAD?path=$crd"; then
39
+ if ! crdify "git://${BASE_SHA}?path=$crd" "git://HEAD?path=$crd"; then
40
echo "❌ Incompatible change detected in $crd"
41
((FAILED++))
42
else
0 commit comments