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]' }} 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: