fix unathorized
Create and publish a Docker image / build-and-push-image (push) Failing after 17s

This commit is contained in:
kislovdm
2024-03-18 13:01:15 +03:00
parent 8392e499b2
commit 909bb2350e
+7
View File
@@ -91,8 +91,15 @@ public class App : IApp
if (emoji.UpdatedAt <= commit.CommittedDate)
{
sb.AppendLine($" - Удален {emoji.Name} от {emoji.User.Username} ({emoji.UpdatedAt}), т.к. после него были коммиты ({commit.CommittedDate}).");
try
{
await _customClient.DeleteEmoji(mergeRequest.ProjectId, mergeRequest.Iid, emoji.Id);
}
catch (HttpRequestException ex) when(ex.Message.Contains("Response status code does not indicate success"))
{
Console.WriteLine(ex);
}
}
}
if (sb.Length > 0)
{