From 9310949b44b7c9d5f89e6efa2322e6b841c9dafb Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Wed, 5 Apr 2023 20:08:06 +0100 Subject: [PATCH] GitHub Autocomment: Retry on server errors (#3958) Retry posting/updating a comment in case of 5XX errors from GitHub API --- .github/workflows/build_and_test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 68102bce84..56c0aa8f9a 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -409,6 +409,8 @@ jobs: steps.create-allure-report-release.outputs.report-url ) with: + # Retry script for 5XX server errors: https://github.com/actions/github-script#retries + retries: 5 script: | const reports = [{ buildType: "debug",