From 45d4397e3635909ed5ffebef8f71c1cb7a5800af Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Thu, 21 Dec 2023 23:46:09 +0800 Subject: [PATCH] chore: enable dependabot auto-approve for k8s.io dependencies --- .github/workflows/dependabot-automerge.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/dependabot-automerge.yaml b/.github/workflows/dependabot-automerge.yaml index ac399982..6d8ebe4b 100644 --- a/.github/workflows/dependabot-automerge.yaml +++ b/.github/workflows/dependabot-automerge.yaml @@ -25,3 +25,9 @@ jobs: env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Auto-approve well-maintained dependencies + if: contains(steps.metadata.outputs.dependency-names, 'k8s.io/client-go') + run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}