Skip to content

Commit

Permalink
Merge pull request #2966 from diogoasouza/dev-v2.7
Browse files Browse the repository at this point in the history
checking release yaml identation
  • Loading branch information
rohitsakala authored Sep 11, 2023
2 parents 6044496 + d1594af commit d600555
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
10 changes: 10 additions & 0 deletions scripts/check-release-yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d600555

Please sign in to comment.