From e5489dffa20ac1b318d425c0e6f0dfd661cd2905 Mon Sep 17 00:00:00 2001 From: Guillermo Mazzola Date: Tue, 17 Oct 2023 20:27:04 +0200 Subject: [PATCH] Update dependabot_automerge.yml --- .github/workflows/dependabot_automerge.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index c795a6e..7dbca16 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -9,15 +9,9 @@ permissions: jobs: dependabot: runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} + if: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') }} steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Enable auto-merge for Dependabot PRs - #if: ${{contains(steps.metadata.outputs.dependency-names, 'my-dependency') && steps.metadata.outputs.update-type == 'version-update:semver-patch'}} run: gh pr merge --auto --rebase "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}}