From f3ac275cb22149f93e39d024f61b22dff77ef0d6 Mon Sep 17 00:00:00 2001 From: Thomas Griseau <48803465+griseau@users.noreply.github.com> Date: Wed, 25 Oct 2023 12:20:37 +0200 Subject: [PATCH] ci: avoid dependabot to merge if tests fails (#1468) --- .github/workflows/continuous-integration.yaml | 18 ++++++++++++++--- .github/workflows/merge-me.yaml | 20 ------------------- 2 files changed, 15 insertions(+), 23 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..08b0345b 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -4,9 +4,6 @@ on: pull_request: branches: - master - push: - branches: - - master jobs: format: @@ -108,3 +105,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