Check commitResult

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
David Refoua
2026-04-12 04:59:42 +03:30
committed by GitHub
parent 6924bcb8b5
commit e4ab8fb2fd

View File

@@ -223,6 +223,7 @@ jobs:
git add vendor/sources.json
$commitResult = git commit -m "⬆️ Update dependencies ($env:LIST_UPDATED)"
if ($commitResult) {
# Push directly to master
git push origin HEAD:master
@@ -233,6 +234,7 @@ jobs:
# Set a flag to skip PR creation
echo "AUTO_MERGED=true" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
}
} catch {
echo "" >> $env:GITHUB_STEP_SUMMARY
echo "⚠️ **Warning:** Unable to automatically merge updates." >> $env:GITHUB_STEP_SUMMARY