From 018dfab287d29c529f4147ee1030661d85764b47 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 24 Feb 2023 14:30:45 +0100 Subject: [PATCH] ci: add 1 Browserstack auto-retry --- .github/workflows/retry.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/retry.yml diff --git a/.github/workflows/retry.yml b/.github/workflows/retry.yml new file mode 100644 index 0000000000..8f249dc820 --- /dev/null +++ b/.github/workflows/retry.yml @@ -0,0 +1,16 @@ +name: Retry + +on: + workflow_run: + workflows: [Browserstack] + types: + - completed + +jobs: + retry: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 }} + steps: + - run: gh api -XPOST ${{ github.event.workflow_run.rerun_url }}-failed-jobs + env: + GH_TOKEN: ${{ github.token }}