Skip to content

Commit 5124a8b

Browse files
committed
Test branch fetching.
1 parent 418ec06 commit 5124a8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/crd-validation.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@v6
2323
with:
24-
go-version: '1.25'
24+
go-version: "1.25"
2525
cache: true
2626

2727
- name: Install crdify
@@ -30,9 +30,9 @@ jobs:
3030
3131
- name: Run CRD Validation Check
3232
run: |
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 (derived from ${{ github.base_ref }})"
33+
BASE_REF="${{ github.base_ref }}"
34+
HEAD_REF="${{ github.head_ref }}"
35+
echo "current branch: $BASE_REF || head: $HEAD_REF"
3636
3737
FAILED=0
3838
for crd in config/crd/bases/*.yaml; do
@@ -49,4 +49,4 @@ jobs:
4949
exit 1
5050
fi
5151
52-
echo "All CRDs are compatible."
52+
echo "All CRDs are compatible."

0 commit comments

Comments
 (0)