From d26d593a6124930803e912f2bda0229fcda54028 Mon Sep 17 00:00:00 2001 From: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> Date: Sun, 11 Dec 2022 02:51:07 +0530 Subject: [PATCH] refactor: automerger now requires CI & CT Workflows Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> --- .github/workflows/automerger.yml | 6 +----- .github/workflows/pipeline.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/automerger.yml b/.github/workflows/automerger.yml index 78607f4..ee097e9 100644 --- a/.github/workflows/automerger.yml +++ b/.github/workflows/automerger.yml @@ -1,9 +1,7 @@ name: 'Auto Merge PRs' on: - pull_request: - branches: - - master + workflow_call: permissions: pull-requests: write @@ -12,8 +10,6 @@ permissions: jobs: automerge: runs-on: ubuntu-latest - if: > - github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' steps: - uses: fastify/github-action-merge-dependabot@v3 with: diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 02e1916..c217100 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -32,3 +32,12 @@ jobs: needs: - extract-branch uses: maptiler/tileserver-gl/.github/workflows/ct.yml@master + automerger: + name: 'Automerge Dependabot PRs' + needs: + - ci + - ct + - extract-branch + if: > + github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' + uses: maptiler/tileserver-gl/.github/workflows/ct.yml@master