Skip to content

Commit

Permalink
Merge pull request #1 from CRUKorg/add-dependabot
Browse files Browse the repository at this point in the history
add dependabot yml
  • Loading branch information
podduturiswetha authored Aug 28, 2024
2 parents 536eced + c154c34 commit 5ddcd17
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Dependabot auto merge"

on:
pull_request:
branches:
- "*"
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
dependabot-auto-merge:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
timeout-minutes: 5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: approve Dependabot PR
run: |
gh pr review --approve ${{ github.event.pull_request.html_url }} --body "Auto approved by CI"
- name: Enable auto-merge for Dependabot PRs
run: |
gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
open-pull-requests-limit: 5
schedule:
interval: daily

0 comments on commit 5ddcd17

Please sign in to comment.