From 3cee40de33e9d675540d59cbed29dce542a16056 Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Wed, 25 Oct 2023 12:13:31 +0200 Subject: [PATCH] ci: avoid dependabot to merge if tests fails --- .github/workflows/continuous-integration.yaml | 15 ++++++++++++++ .github/workflows/merge-me.yaml | 20 ------------------- 2 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/merge-me.yaml diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index e5154622..3754110d 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -108,3 +108,18 @@ jobs: - name: Types run: npm run types timeout-minutes: 5 + merge-me: + needs: + - format + - lint + - spellcheck + - test + - types + name: Merge me! + runs-on: ubuntu-latest + steps: + - name: Merge me! + uses: ridedott/merge-me-action@master + with: + GITHUB_TOKEN: ${{ secrets.DOTTBOTT_TOKEN }} + timeout-minutes: 5 diff --git a/.github/workflows/merge-me.yaml b/.github/workflows/merge-me.yaml deleted file mode 100644 index bea0e0b7..00000000 --- a/.github/workflows/merge-me.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Merge me! - -on: - workflow_run: - types: - - completed - workflows: - - 'Continuous Integration' - -jobs: - merge-me: - if: ${{ github.event.workflow_run.conclusion == 'success' }} - name: Merge me! - runs-on: ubuntu-latest - steps: - - name: Merge me! - uses: ridedott/merge-me-action@master - with: - GITHUB_TOKEN: ${{ secrets.DOTTBOTT_TOKEN }} - timeout-minutes: 5