mirror of
https://github.com/RetroDECK/components-template.git
synced 2024-11-24 12:15:38 +00:00
PR: troubleshooting the PR not being created
This commit is contained in:
parent
eab5f80f3b
commit
3e009f583f
4
.github/workflows/pr_from_upstream.yml
vendored
4
.github/workflows/pr_from_upstream.yml
vendored
|
@ -78,9 +78,8 @@ jobs:
|
|||
fi
|
||||
|
||||
# Check if any changes were introduced by the merge
|
||||
if [ -z "$(git diff --stat)" ]; then
|
||||
if git diff --exit-code "origin/${{ env.TARGET_BRANCH }}"; then
|
||||
echo "No changes detected after merging. Exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
- name: Push changes to new branch
|
||||
|
@ -88,6 +87,7 @@ jobs:
|
|||
run: |
|
||||
git push origin "${{ env.BRANCH_NAME }}"
|
||||
|
||||
|
||||
- name: Create Pull Request
|
||||
if: success()
|
||||
uses: peter-evans/create-pull-request@v7.0.5
|
||||
|
|
Loading…
Reference in a new issue