Skip to content

Commit

Permalink
support github token (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangnew authored Dec 10, 2024
1 parent 65060a2 commit d345bac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ runs:
steps:
- run: |
set -x
git config advice.skippedCherryPicks false
git remote add -f upstream "https://github.com/${{ inputs.upstream }}.git"
git remote -v
git branch --all
git config user.email "${{ inputs.useremail }}"
git config user.name "${{ inputs.username }}"
git config --list
git checkout ${{ inputs.branch }}
git rebase upstream/${{ inputs.upstream-branch }}
git pull --rebase
git push
git rebase -q upstream/${{ inputs.upstream-branch }}
git pull --rebase -q
git config --unset-all http."https://github.com/".extraheader || :
git remote set-url origin "https://x-access-token:${{ inputs.token }}@github.com/${GITHUB_REPOSITORY}.git"
git push origin ${{ inputs.branch }}
shell: bash

0 comments on commit d345bac

Please sign in to comment.