From 2db299cc7b8eeac15aab8d87189bee483967407d Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Thu, 26 Oct 2023 13:15:15 +0200 Subject: [PATCH] ci: avoid dependabot to merge if tests fails --- .github/workflows/continuous-integration.yaml | 16 +++++++++++++++ .github/workflows/merge-me.yaml | 20 ------------------- 2 files changed, 16 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 2c0e6adfb44..526313ed78a 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -131,3 +131,19 @@ jobs: - name: Types run: npm run types timeout-minutes: 5 + merge-me: + needs: + - build + - 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 bea0e0b7d5d..00000000000 --- 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