Skip to content

Commit

Permalink
Fix gh auth login command (#1274)
Browse files Browse the repository at this point in the history
Signed-off-by: willdavsmith <[email protected]>
  • Loading branch information
willdavsmith authored Nov 11, 2024
1 parent b93014a commit fc17439
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/upmerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
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 }}"
# Create a new branch from edge. This branch will be used to PR back into edge.
- name: Create new branch
run: |
Expand All @@ -58,11 +59,7 @@ jobs:
# branch is assumed to be the current release branch, but could be any branch.
# If there are no changes, stop the workflow.
- name: Upmerge docs
env:
GITHUB_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }}
run: |
gh auth login --with-token $GITHUB_TOKEN
export SOURCE_BRANCH=$(basename ${{ github.ref }})
echo "Upmerging docs from $SOURCE_BRANCH to edge"
git fetch origin $SOURCE_BRANCH
Expand All @@ -81,6 +78,4 @@ jobs:
# Create a PR from the new branch to edge
- name: Create pull request
if: env.NO_CHANGES != 'true'
env:
GITHUB_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 fc17439

Please sign in to comment.