Skip to content

Commit

Permalink
Merge pull request #90 from FullStackWithLawrence/next
Browse files Browse the repository at this point in the history
chore: try a rebase
  • Loading branch information
lpm0073 authored Nov 17, 2023
2 parents 4670bf9 + dfafe5b commit 0a33fed
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/pushMain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,9 @@ jobs:
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Rebase and merge
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git checkout main
git pull
git checkout ${{ github.event.pull_request.head.ref }}
git rebase main
git checkout main
git merge --no-ff ${{ github.event.pull_request.head.ref }}
git push https://${{ env.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.event.pull_request.head.ref }}
- name: Merge main into next
id: merge_main_to_next
shell: bash
Expand All @@ -45,8 +34,9 @@ jobs:
git checkout main
git pull
git checkout next
git pull
git merge main
git rebase main
git checkout main
git merge --no-ff next
git push https://${{ env.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:next
- name: Merge main into next-major
Expand Down

0 comments on commit 0a33fed

Please sign in to comment.