Closed GrantBirki closed 5 months ago
Good news, it looks like this is already being done, but perhaps the API has changed in a way where this condition is no longer being met. (i.e. octokit raising a custom error class rather than returning status codes, etc)
This issue is officially just me thinking out load and looping back on a problem I already fixed else where 🤦
Errors are raised if a lock branch is not found
In its current state, this Action throws an error if a lock branch is not found. When originally writing this Action, this made sense to me because if the lock branch is created by this Action, or the parent
github/branch-deploy
Action, then it should also be removed by it right?... Wrong.There are now many bespoke ways that other workflows can integrate with this Action. There are also alternate workflows within the
github/branch-deploy
Action as well such as the Unlock on Merge strategy.Here is an example of the
github/lock
Action raising an exception in a workflow when a lock branch is not found:Due to this error being raised, the entire workflow fails. Rather than failing the entire workflow, it should simply be aware of this edge case, and log a warning message when it occurs.
Error text: