bin/make-snapshot: Auto resolve composer.lock conflicts

dependabot seems to use an older composer version, causing
conflicts with the property `plugin-api-version`. Anyway,
the merge leading to the conflict is only done to make
a tag reachable. So the composer.lock of the main branch
is always the right choice.
This commit is contained in:
Johannes Meyer 2025-07-09 10:35:48 +02:00
parent 6c862b2ab8
commit a3a9a0f9a8

View File

@ -21,7 +21,7 @@ git checkout -b $BRANCH
git mv composer.lock composer.lock.bak
git commit -am "Backup composer.lock"
git merge --no-ff -m "Merge latest tag, package pipelines require it" $LATEST_TAG
git merge --no-ff -m "Merge latest tag, package pipelines require it" $LATEST_TAG || git checkout --ours composer.lock.bak && git add composer.lock.bak && git commit --no-edit
git mv -f composer.lock.bak composer.lock
git commit -am "Restore composer.lock"