-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing makefile check
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,11 +49,10 @@ ci-clone-kibana-repository: | |
cp $(FILE_REPO) $(ELASTIC_AGENT_REPO)/$(ELASTIC_AGENT_REPO_PATH) | ||
|
||
## ci-create-kubernetes-templates-pull-request : Create the pull request for the kubernetes templates | ||
$(eval HASDIFF =$(shell sh -c "git status | grep $(FILE_REPO) | wc -l")) | ||
.PHONY: ci-create-kubernetes-templates-pull-request | ||
ci-create-kubernetes-templates-pull-request: | ||
HASDIFF=`git status | grep $(FILE_REPO) | wc -l`; \ | ||
echo $${HASDIFF} | ||
ifeq ($${HASDIFF},1) | ||
ifeq ($(HASDIFF),1) | ||
echo "INFO: Create branch to update k8s templates" | ||
git config user.name obscloudnativemonitoring | ||
git config user.email [email protected] | ||
|
@@ -79,8 +78,7 @@ else | |
--base main \ | ||
--head $(ELASTIC_AGENT_BRANCH) \ | ||
--reviewer elastic/obs-cloudnative-monitoring | ||
endif | ||
|
||
endif | ||
else | ||
echo "No differences found with kibana git repository" | ||
endif | ||
|