From 2f0ecd7effafbc4c2aa742213cefb4e7a616d15d Mon Sep 17 00:00:00 2001 From: "cl.st" Date: Mon, 24 Mar 2025 21:22:28 +0100 Subject: [PATCH] chore: update dependabot --- .github/dependabot.yml | 10 +++++++--- .github/workflows/dependabotautomerge.yml | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/dependabotautomerge.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5f0889c..254aef8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,7 +5,11 @@ version: 2 updates: - - package-ecosystem: "npm" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "npm" + directory: "/" schedule: - interval: "weekly" + interval: "daily" + groups: + root-dependencies: + patterns: + - "*" \ No newline at end of file diff --git a/.github/workflows/dependabotautomerge.yml b/.github/workflows/dependabotautomerge.yml new file mode 100644 index 0000000..ffc9ef2 --- /dev/null +++ b/.github/workflows/dependabotautomerge.yml @@ -0,0 +1,22 @@ +name: Dependabot auto-merge +on: pull_request + +permissions: + pull-requests: write + contents: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v2.1.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --rebase "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file