From dd39b9037a30c9e23c899b7b1ee405b29fe92536 Mon Sep 17 00:00:00 2001 From: Nemo Date: Mon, 5 Aug 2024 12:27:20 +0530 Subject: [PATCH] auto-dep update --- .github/dependabot.yml | 27 +++++++++++++++++++++------ .github/workflows/deps.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/deps.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 19f0f1e..d5cec52 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,23 @@ version: 2 updates: -- package-ecosystem: bundler - directory: "/" - schedule: - interval: daily - time: "23:30" - open-pull-requests-limit: 99 + - package-ecosystem: pip + directory: "/" + schedule: + interval: weekly + time: "04:00" + timezone: Asia/Calcutta + - package-ecosystem: "github-actions" + directory: "/" + schedule: + time: "04:00" + interval: weekly + timezone: Asia/Calcutta + - package-ecosystem: "bundler" + vendor: true + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "gitsubmodule" + directory: "/" + schedule: + interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml new file mode 100644 index 0000000..d5c34fb --- /dev/null +++ b/.github/workflows/deps.yml @@ -0,0 +1,29 @@ +# Note that this is a low security repo +# since the builds only impact the website +# and we do not have any releases +name: Auto Merge Dependency Updates +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.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/checkout@v4 + name: Clone self repository + with: + ref: ${{ github.head_ref }} + submodules: true + - name: Enable auto-merge for Dependabot PRs for release data + 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