Skip to content

Commit 0e08104

Browse files
fix: use cloud-java-bot username in new library generated PRs and commits (#10266)
* fix: make cloud-java-bot the author of new library PR and commits * use cloud java bot token when adding remote
1 parent 458516b commit 0e08104

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/generate_new_client.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ jobs:
114114
- name: Push to branch and create PR
115115
run: |
116116
set -x
117-
[ -z "`git config user.email`" ] && git config --global user.email "${USERNAME:-script}@google.com"
118-
[ -z "`git config user.name`" ] && git config --global user.name "${USERNAME:-script}"
117+
[ -z "`git config user.email`" ] && git config --global user.email "cloud-java-bot@google.com"
118+
[ -z "`git config user.name`" ] && git config --global user.name "cloud-java-bot"
119119
120120
# create and push to branch in origin
121121
# random_id allows multiple runs of this workflow
@@ -125,7 +125,7 @@ jobs:
125125
git add --all
126126
commit_message="feat: [${API_SHORTNAME}] new module for ${API_SHORTNAME}"
127127
git commit -m "${commit_message}"
128-
git remote add monorepo https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git
128+
git remote add monorepo https://cloud-java-bot:${GH_TOKEN}@github.com/${{ github.repository }}.git
129129
git fetch -q --unshallow monorepo
130130
git push -f monorepo "${branch_name}"
131131

0 commit comments

Comments
 (0)