Skip to content

Commit ccf88ea

Browse files
committed
[CI] Fix sync k8s step
1 parent d83bac9 commit ccf88ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deploy/kubernetes/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ $(eval HASDIFF =$(shell sh -c "git status | grep $(FILE_REPO) | wc -l"))
6363
ci-create-kubernetes-templates-pull-request:
6464
ifeq ($(HASDIFF),1)
6565
echo "INFO: Create branch to update k8s templates"
66-
git config user.name "${GITHUB_USERNAME_SECRET}"
67-
git config user.email "${GITHUB_EMAIL_SECRET}"
68-
git config remote.origin.url "https://${GITHUB_USERNAME_SECRET}:${GITHUB_TOKEN_SECRET}@github.com/elastic/kibana.git"
66+
@git config user.name "${GITHUB_USERNAME_SECRET}"
67+
@git config user.email "${GITHUB_EMAIL_SECRET}"
68+
@git config remote.origin.url "https://${GITHUB_USERNAME_SECRET}:${GITHUB_TOKEN_SECRET}@github.com/elastic/kibana.git"
6969
git checkout -b $(ELASTIC_AGENT_BRANCH)
7070
echo "INFO: add files if any"
7171
git add $(ELASTIC_AGENT_REPO_PATH)$(FILE_REPO)
@@ -80,7 +80,7 @@ else
8080
echo "INFO: push branch"
8181
@git push --set-upstream origin $(ELASTIC_AGENT_BRANCH)
8282
echo "INFO: create pull request"
83-
@gh pr create \
83+
@GITHUB_TOKEN=$(GITHUB_TOKEN_SECRET) gh pr create \
8484
--title "Update kubernetes templates for elastic-agent" \
8585
--body "Automated by ${BUILDKITE_BUILD_URL}" \
8686
--label automation \

0 commit comments

Comments
 (0)