From 2785154765f7a52d86e43564fa20cfa081aae404 Mon Sep 17 00:00:00 2001 From: Kai Schwarz Date: Tue, 31 Oct 2023 15:46:29 +0100 Subject: [PATCH 1/2] ci(gh actions): reviewed auto-merge workflow --- .github/workflows/auto-merge-dependabot-pr.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-merge-dependabot-pr.yml b/.github/workflows/auto-merge-dependabot-pr.yml index 5951a62c..e7938377 100644 --- a/.github/workflows/auto-merge-dependabot-pr.yml +++ b/.github/workflows/auto-merge-dependabot-pr.yml @@ -1,5 +1,9 @@ name: Dependabot auto-merge -on: pull_request +on: + pull_request: + types: + - opened + - synchronize permissions: contents: write @@ -8,8 +12,10 @@ permissions: jobs: tests: uses: ./.github/workflows/test.yml + secrets: inherit + dependabot: - name: "Auto-merge Dependabot PR" + name: Auto-merge Dependabot PR runs-on: ubuntu-latest needs: tests if: ${{ github.actor == 'dependabot[bot]' }} From ee29400c952bba1551a5de0099155d5790e8eff8 Mon Sep 17 00:00:00 2001 From: Kai Schwarz Date: Tue, 31 Oct 2023 15:47:30 +0100 Subject: [PATCH 2/2] ci(gh actions): don't run test workflow on PRs in addition --- .github/workflows/test.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3087dcde..8c7d3f35 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,6 @@ name: Test on: - pull_request: - types: - - opened - - synchronize - workflow_call: jobs: