Skip to content

Commit

Permalink
CORE-279: Dependabot configuration and auto-approve (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidangb authored Feb 10, 2025
1 parent 664ee88 commit 045f479
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
open-pull-requests-limit: 10
groups:
minor-patch-dependencies:
patterns:
- "*"
update-types:
- "minor"
- "patch"
schedule:
interval: "weekly"
time: "06:00"
timezone: "America/New_York"
target-branch: "master"
reviewers:
- "@DataBiosphere/broad-devops"
labels:
- "dependency"
- "gradle"
commit-message:
prefix: "[CORE-69]"
21 changes: 21 additions & 0 deletions .github/workflows/auto-approve-dependabot-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Dependabot auto-approve
on: pull_request

permissions:
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- 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 }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
run: ./gradlew integrationTest --scan
- name: Upload Test Reports
if: always() && steps.skiptest.outputs.is-bump == 'no'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Test Reports
path: build/reports/tests

0 comments on commit 045f479

Please sign in to comment.