Skip to content

Commit

Permalink
ci: Create a PR with in a single job
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Nov 3, 2023
1 parent 298b7ff commit f62efa9
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/merge-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- '.github/workflows/merge-upstream.yml'

jobs:
push:
pr:
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -69,21 +69,10 @@ jobs:
run: |
git rebase -s ort -X ours ${{ steps.start.outputs.rev }}
- run: git push --force-with-lease origin HEAD

pr:
runs-on: ubuntu-latest

needs:
- push

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: akirak

- run: git merge --ff origin/upstream-recipes
- name: Merge into the original branch
run: |
git switch -c ${{ strategy.base_ref }}
git merge --ff upstream-recipes
- name: Create a pull request
uses: peter-evans/create-pull-request@v5
Expand Down

0 comments on commit f62efa9

Please sign in to comment.