Skip to content

Commit

Permalink
Merge pull request #323 from appuio/fix-pr-check
Browse files Browse the repository at this point in the history
Fix chart-version PR check
  • Loading branch information
ccremer authored Jun 14, 2021
2 parents 21187f5 + 8e71f9e commit 2e0c281
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ lint\:vet: ## Run go vet against code
lint\:versions: ## Checks if chart versions have been changed
@echo --- Detecting version bumps in the charts
@echo " If this target fails, one of the listed charts below has not its version updated!"
@changed_dirs=$$(git diff --dirstat=files,0 origin/master..HEAD -- appuio | awk '{if (!/\.github/) print $$2}') ; \
echo $$changed_dirs ; echo ; \
for dir in $$changed_dirs; do git diff origin/master..HEAD -- "$${dir}Chart.yaml" | grep -H --label=$$dir "+version"; done
@changed_charts=$$(git diff --dirstat=files,0 origin/master..HEAD -- appuio | cut -d '/' -f 2 | uniq) ; \
echo $$changed_charts ; echo ; \
for dir in $$changed_charts; do git diff origin/master..HEAD -- "appuio/$${dir}/Chart.yaml" | grep -H --label=$${dir} "+version"; done

.PHONY: lint
lint: lint\:fmt lint\:vet ## All-in-one linting and checks for uncommitted changes
Expand Down

0 comments on commit 2e0c281

Please sign in to comment.