Skip to content

Commit 086e317

Browse files
committed
Update pull_upstream.yml
1 parent 2a0d819 commit 086e317

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/pull_upstream.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ jobs:
4444
run: |
4545
git merge upstream/master --allow-unrelated-histories --squash
4646
47+
- name: List files with merge conflicts
48+
shell: bash
49+
run: |
50+
echo "Please resolve merge conflicts within the following files:\n" >> .pr-body.md
51+
git diff --name-only --diff-filter=U --relative | awk '{print "- " $0}' >> .pr-body.md
52+
4753
- name: Commit
4854
id: commit
4955
continue-on-error: true
@@ -61,6 +67,6 @@ jobs:
6167
if: steps.commit.outcome == 'success'
6268
shell: bash
6369
run: |
64-
gh pr create --fill --base ${{ github.ref_name }} --head pull_upstream
70+
gh pr create --fill --body-file ".pr-body.md" --base ${{ github.ref_name }} --head pull_upstream
6571
env:
6672
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)