auto-dep update

This commit is contained in:
Nemo 2024-08-05 12:27:20 +05:30
parent a94d7a62a6
commit dd39b9037a
2 changed files with 50 additions and 6 deletions

View File

@ -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"

29
.github/workflows/deps.yml vendored Normal file
View File

@ -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}}