ci/update: drop empty commits on re-apply

This commit is contained in:
Matt Sturgeon 2025-02-24 16:04:29 +00:00
parent 05981008b7
commit 4b0de83c39
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -170,7 +170,10 @@ jobs:
if [[ -n "$commits" ]]; then
echo "Applying ${#commits[@]} commits..."
echo "count=${#commits[@]}" >> $GITHUB_OUTPUT
git cherry-pick --strategy-option=theirs "${commits[@]}"
git cherry-pick \
--strategy-option=theirs \
--empty=drop \
"${commits[@]}"
else
echo "Nothing to re-apply"
fi