File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ $(eval HASDIFF =$(shell sh -c "git status | grep $(FILE_REPO) | wc -l"))
63
63
ci-create-kubernetes-templates-pull-request :
64
64
ifeq ($(HASDIFF ) ,1)
65
65
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"
69
69
git checkout -b $(ELASTIC_AGENT_BRANCH)
70
70
echo "INFO: add files if any"
71
71
git add $(ELASTIC_AGENT_REPO_PATH)$(FILE_REPO)
80
80
echo "INFO: push branch"
81
81
@git push --set-upstream origin $(ELASTIC_AGENT_BRANCH)
82
82
echo "INFO: create pull request"
83
- @gh pr create \
83
+ @GITHUB_TOKEN=$(GITHUB_TOKEN_SECRET) gh pr create \
84
84
--title "Update kubernetes templates for elastic-agent" \
85
85
--body "Automated by ${BUILDKITE_BUILD_URL}" \
86
86
--label automation \
You can’t perform that action at this time.
0 commit comments