From b36c0892af5e3e58ab3e3da5d89591374529fac6 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 12 Mar 2024 19:45:57 +0100 Subject: [PATCH] Updates on ci/dependabot (#414) * drop not usefull job Signed-off-by: cpanato * group dependabot updates Signed-off-by: cpanato --------- Signed-off-by: cpanato --- .github/dependabot.yml | 5 +++++ .github/workflows/auto-approve-merge.yml | 27 ------------------------ 2 files changed, 5 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/auto-approve-merge.yml 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}}