From 4b3d7f7ad2061b54e2af17daadad0056e96c3b22 Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Fri, 3 Nov 2023 01:15:39 +0900 Subject: [PATCH] Add a separate job for a PR --- .github/workflows/merge-upstream.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge-upstream.yml b/.github/workflows/merge-upstream.yml index fc96591f14e..6058e80f998 100644 --- a/.github/workflows/merge-upstream.yml +++ b/.github/workflows/merge-upstream.yml @@ -61,4 +61,24 @@ jobs: run: | git rebase -s ort -X ours ${{ steps.start.outputs.rev }} - - run: git push origin HEAD + - run: git push --force-with-lease origin HEAD + + pr: + runs-on: ubuntu-latest + + needs: + - push + + steps: + - uses: actions/checkout@v3 + with: + ref: upstream-recipes + + - name: Create a pull request + uses: peter-evans/create-pull-request@v5 + with: + base: akirak + branch: create-pull-request/recipes + token: ${{ secrets.PAT_FOR_PR }} + title: 'Merge the upstream recipe commits' + labels: automation