From 1e8b430b08a18a18883a69e7991832c9c602ca1a Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Mon, 25 Nov 2024 12:27:55 +0100 Subject: [PATCH] ci: add retry --- .github/workflows/retry.yml | 17 +++++++++++++++++ 1 file changed, 17 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..8d9ff62509 --- /dev/null +++ b/.github/workflows/retry.yml @@ -0,0 +1,17 @@ +name: Retry + +on: + workflow_run: + workflows: + - Test + types: + - completed + +jobs: + retry: + runs-on: ubuntu-latest + if: ${{ github.repository == 'panva/jose' && 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 }}