Skip to content

Commit

Permalink
Merge branch 'mgz0227:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
yindushenwen authored Jun 3, 2024
2 parents b05f130 + 5b3ac7b commit ef7243d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/AutoMerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
- name: Configure git
run: |
git config --global user.name "mgz0227"
git config --global user.email "miaogongzi0227@gmail.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Merge PR
if: env.MERGE == 'true'
env:
GITHUB_TOKEN: ${{ secrets.AUTOMERGE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=${{ github.event.pull_request.number }}
PR_BRANCH=refs/pull/$PR_NUMBER/head
Expand All @@ -56,4 +56,4 @@ jobs:
git merge --no-ff $PR_BRANCH -m "Merge pull request #$PR_NUMBER from $PR_BRANCH"
# Push the changes
git push https://x-access-token:${{ secrets.AUTOMERGE }}@github.com/${{ github.repository }} $BASE_BRANCH
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git $BASE_BRANCH

0 comments on commit ef7243d

Please sign in to comment.