From 08512cd4056eeffb5c349482b6f94beda93ecc6d Mon Sep 17 00:00:00 2001 From: Julien Cherry <6952800+juliencherry@users.noreply.github.com> Date: Fri, 11 Apr 2025 10:53:49 -0400 Subject: [PATCH] =?UTF-8?q?COMN-378:=20Don=E2=80=99t=20use=20`RosetteTextA?= =?UTF-8?q?nalytics/reusable-workflows`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dependabot-automerge.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index 8c167f5..d4854f8 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -2,5 +2,19 @@ name: Dependabot automerge on: pull_request jobs: dependabot: - secrets: inherit - uses: RosetteTextAnalytics/reusable-workflows/.github/workflows/dependabot-automerge.yml@main + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'dependabot[bot]' + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v2.3.0 + - name: Approve a PR + run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}