From 72283914528a957a9744b00199b99b00a71db2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 24 Apr 2025 14:03:03 +0200 Subject: [PATCH] ci: auto-approve only minor prettier-config updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a follow-up for eef0e609 (#726) which enabled auto-approvals for _all_ new versions of `@checkernetwork/prettier-config`. Signed-off-by: Miroslav Bajtoš --- .../dependabot-auto-approve-always.yml | 26 ------------------- .../dependabot-auto-approve-minor.yml | 1 + 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 .github/workflows/dependabot-auto-approve-always.yml diff --git a/.github/workflows/dependabot-auto-approve-always.yml b/.github/workflows/dependabot-auto-approve-always.yml deleted file mode 100644 index e1eafcb1..00000000 --- a/.github/workflows/dependabot-auto-approve-always.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Dependabot auto-approve updates -on: pull_request - -permissions: - pull-requests: write - -jobs: - dependabot: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - strategy: - matrix: - dependencyStartsWith: - - '@checkernetwork/prettier-config' - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v2 - with: - github-token: '${{ secrets.GITHUB_TOKEN }}' - - name: Approve a PR - if: ${{startsWith(steps.metadata.outputs.dependency-names, matrix.dependencyStartsWith)}} - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/dependabot-auto-approve-minor.yml b/.github/workflows/dependabot-auto-approve-minor.yml index 629e1f24..d15920a3 100644 --- a/.github/workflows/dependabot-auto-approve-minor.yml +++ b/.github/workflows/dependabot-auto-approve-minor.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: dependencyStartsWith: + - '@checkernetwork/prettier-config' - '@sentry/' - undici - '@types/'