diff --git a/.github/workflows/merge-upstream.yml b/.github/workflows/merge-upstream.yml index c4dadd335b0..7e3225cfc6c 100644 --- a/.github/workflows/merge-upstream.yml +++ b/.github/workflows/merge-upstream.yml @@ -59,16 +59,20 @@ jobs: commit.committer_date = commit.author_date ' --force + - name: Rebase + run: | + git rebase -s ours --onto=merge-base ${{ steps.start.outputs.rev }} + # A workaround to prevent peter-evans/create-pull-request from resetting the # head here: # - - name: Detach the head - run: git switch --detach `git rev-parse HEAD` + # - name: Detach the head + # run: git switch --detach `git rev-parse HEAD` - name: Create a pull request uses: peter-evans/create-pull-request@v5 with: - base: merge-base + # base: merge-base token: ${{ secrets.PAT_FOR_PR }} title: 'Merge the upstream recipe commits' branch: upstream-recipes