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 }}