diff --git a/.github/workflows/generate_new_client.yaml b/.github/workflows/generate_new_client.yaml index d263b7b5a90e..b7a359bff757 100644 --- a/.github/workflows/generate_new_client.yaml +++ b/.github/workflows/generate_new_client.yaml @@ -114,8 +114,8 @@ jobs: - name: Push to branch and create PR run: | set -x - [ -z "`git config user.email`" ] && git config --global user.email "${USERNAME:-script}@google.com" - [ -z "`git config user.name`" ] && git config --global user.name "${USERNAME:-script}" + [ -z "`git config user.email`" ] && git config --global user.email "cloud-java-bot@google.com" + [ -z "`git config user.name`" ] && git config --global user.name "cloud-java-bot" # create and push to branch in origin # random_id allows multiple runs of this workflow @@ -125,7 +125,7 @@ jobs: git add --all commit_message="feat: [${API_SHORTNAME}] new module for ${API_SHORTNAME}" git commit -m "${commit_message}" - git remote add monorepo https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git + git remote add monorepo https://cloud-java-bot:${GH_TOKEN}@github.com/${{ github.repository }}.git git fetch -q --unshallow monorepo git push -f monorepo "${branch_name}"