Handle remote prune failures gracefully on self-hosted runners - #4295
Merged
Conversation
Wrap the git remote prune command in a try-catch block to prevent the action from failing if the prune operation fails. Instead, log a warning message and allow the action to continue. Fixes edge cases where the prune command may fail on self-hosted runners but shouldn't block the pull request creation workflow.
Contributor
|
Full test suite slash command (repository admin only) |
Towards #4198
Wrap the git remote prune command in a try-catch block to prevent the action from failing if the prune operation fails. Instead, log a warning message and allow the action to continue.
Fixes edge cases where the prune command may fail on self-hosted runners but shouldn't block the pull request creation workflow.