diff --git a/.github/workflows/vendor.yml b/.github/workflows/vendor.yml index 1f7a7a0..b5beec9 100644 --- a/.github/workflows/vendor.yml +++ b/.github/workflows/vendor.yml @@ -219,8 +219,7 @@ jobs: Write-Warning "Failed to auto-merge: $($_.Exception.Message)" - # Reset only if a commit was made (check if HEAD moved) - $headBeforeReset = git rev-parse HEAD + # Reset the commit if one was made if ($commitResult) { git reset --hard HEAD~1 }