Skip to content

Commit 920a2be

Browse files
committed
Merge branch 'main' into testBranch3
2 parents 2caf5e5 + 26e3d07 commit 920a2be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/rebase-pr-workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)