diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 727da70..25cdc72 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -20,3 +20,8 @@ updates: directory: "/" schedule: interval: "daily" + groups: + actions: + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/auto-approve-merge.yml b/.github/workflows/auto-approve-merge.yml deleted file mode 100644 index 790e1c5..0000000 --- a/.github/workflows/auto-approve-merge.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Dependabot auto-approve-merge - -on: - pull_request: - -permissions: - pull-requests: write - contents: write - -jobs: - dependabot: - runs-on: ubuntu-latest - if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.6.0 - - # if is minor or patch update enable the auto merge and wait for all conditions to match (status check and approvals) - - name: Enable auto-merge for Dependabot PRs - if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }} - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GH_TOKEN: ${{secrets.GITHUB_TOKEN}}