Skip to content

Commit

Permalink
deal with diverged histories
Browse files Browse the repository at this point in the history
Added Force Merge Upstream Changes to first detect changes from upstream, and if updates are required, perform the forced merge before creating the pull request.
  • Loading branch information
victor-wildlife authored Aug 24, 2024
1 parent 1b9bef6 commit e0cf6d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check-upstream-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
echo "status=up_to_date" >> $GITHUB_OUTPUT
fi
- name: Force merge upstream changes
if: steps.check_updates.outputs.status == 'needs_update'
run: |
git merge upstream/main --allow-unrelated-histories -m "Merge upstream changes"
- name: Create Pull Request
if: steps.check_updates.outputs.status == 'needs_update'
uses: peter-evans/create-pull-request@v6
Expand Down

0 comments on commit e0cf6d3

Please sign in to comment.