Skip to content

Commit 0e2ec83

Browse files
committed
Adding GH_TOKEN
Signed-off-by: willdavsmith <[email protected]>
1 parent fc17439 commit 0e2ec83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/upmerge.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ jobs:
3939
ref: edge
4040
# https://github.com/actions/checkout/issues/125#issuecomment-570254411
4141
fetch-depth: 0
42+
persist-credentials: false
4243

4344
- name: Configure git
45+
env:
46+
GH_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }}
4447
run: |
4548
git config --global user.email "[email protected]"
4649
git config --global user.name "Radius CI Bot"
47-
gh auth login --with-token <<< "${{ secrets.GH_RAD_CI_BOT_PAT }}"
50+
git remote set-url origin https://[email protected]/${{ github.repository }}
4851
4952
# Create a new branch from edge. This branch will be used to PR back into edge.
5053
- name: Create new branch
@@ -78,4 +81,6 @@ jobs:
7881
# Create a PR from the new branch to edge
7982
- name: Create pull request
8083
if: env.NO_CHANGES != 'true'
84+
env:
85+
GH_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }}
8186
run: gh pr create --title "Upmerge to edge" --body "Upmerge to edge (kicked off by @${{ github.triggering_actor }})" --base edge --head $BRANCH_NAME

0 commit comments

Comments
 (0)