File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,23 @@ jobs:
2525 git config --global user.name "GmodNET GitHub Bot"
2626 git config --global user.email support@gmodnet.xyz
2727
28+ - name : Extract branch name
29+ uses : nelonoel/branch-name@v1.0.1
30+
2831 - name : Checkout
2932 env :
3033 GITHUB_TOKEN : ${{ steps.generate_token.outputs.token }}
3134 run : |
3235 gh repo clone ${{ github.repository }} ./
36+ git checkout ${{ env.BRANCH_NAME }}
3337 gh pr checkout ${{ github.event.inputs.prNumber }}
3438
35- - name : Extract branch name
36- uses : nelonoel/branch-name@v1.0.1
37-
3839 - name : Rebase and push
3940 id : rebase_and_push
4041 continue-on-error : true
4142 run : |
43+ git rebase ${{ env.BRANCH_NAME }}
4244 git remote set-url origin https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/${{ github.repository }}.git
43- git fetch origin ${BRANCH_NAME}
44- git rebase ${BRANCH_NAME}
4545 git push --force
4646
4747 - name : Notify if rebase was unsuccessful
You can’t perform that action at this time.
0 commit comments