Skip to content

Commit e15ac1b

Browse files
committed
another try.
1 parent 39936e7 commit e15ac1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/crd-validation.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ jobs:
3030
3131
- name: Run CRD Validation Check
3232
run: |
33-
HEAD_REF="${{ github.head_ref }}"
34-
HEAD_SHA=$(git rev-parse $HEAD_REF)
33+
git fetch origin ${{ github.base_ref }}:upstream_base
34+
BASE_SHA=$(git rev-parse upstream_base)
35+
echo "Validating against Base SHA: $BASE_SHA"
3536
3637
FAILED=0
3738
for crd in config/crd/bases/*.yaml; do
38-
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
3940
echo "❌ Incompatible change detected in $crd"
4041
((FAILED++))
4142
else

0 commit comments

Comments
 (0)