Skip to content

Commit

Permalink
Fix GitHub auth login for upmerge workflow (#1278)
Browse files Browse the repository at this point in the history
* Adding GH_TOKEN

Signed-off-by: willdavsmith <[email protected]>

* Adding Signoff

Signed-off-by: willdavsmith <[email protected]>

* Removing Signoff

Signed-off-by: willdavsmith <[email protected]>

---------

Signed-off-by: willdavsmith <[email protected]>
  • Loading branch information
willdavsmith authored Nov 12, 2024
1 parent fc17439 commit f80d912
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/upmerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ jobs:
ref: edge
# https://github.com/actions/checkout/issues/125#issuecomment-570254411
fetch-depth: 0
persist-credentials: false

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

0 comments on commit f80d912

Please sign in to comment.