diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 2f9d161c3f..d56e843c2a 100755 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -19,9 +19,9 @@ jobs: - name: Pull scripts run: sudo make pull-scripts - - name: Pull in all relevant branches - run: git fetch origin release-v2.6 - + - name: Check release.yaml + run: sudo make check-release-yaml + - name: Validate run: sudo make validate diff --git a/Makefile b/Makefile index 30123f67f5..2792a3d031 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ remove: forward-port: ./scripts/forward-port +check-release-yaml: + ./scripts/check-release-yaml + TARGETS := prepare patch clean clean-cache charts list index unzip zip standardize validate template regsync check-images $(TARGETS): diff --git a/scripts/check-release-yaml b/scripts/check-release-yaml new file mode 100755 index 0000000000..23023cfec9 --- /dev/null +++ b/scripts/check-release-yaml @@ -0,0 +1,10 @@ +#!/bin/bash + +yq -i release.yaml + +if [[ -n $(git status --porcelain release.yaml) ]]; then + echo "release.yaml not following yq style" + exit 1 +else + exit 0 +fi