Includes a change to the merging logic to ensure branches are up to date with the base before merging.
If a PR branch is behind the base at merge time, the action will update the branch instead of merging. This update will trigger a new workflow run, which will eventually retrigger the merge action on what should now be an up-to-date PR branch.