diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b446484..0a3c929 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,5 @@ version: 2 updates: - # Monitor root Go module - package-ecosystem: "gomod" directory: "/" schedule: @@ -9,13 +8,3 @@ updates: prefix: "chore" prefix-development: "chore" include: "scope" - - # Monitor e2e-tests tools Go module - - package-ecosystem: "gomod" - directory: "/e2e-tests/tools" - schedule: - interval: "daily" - commit-message: - prefix: "chore" - prefix-development: "chore" - include: "scope" diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..0cd768b --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,17 @@ +name: Dependabot auto-merge +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'dependabot[bot]' + steps: + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --squash "$PR_URL" && gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file