Skip to content

Commit

Permalink
chore: Extend Dependabot Support
Browse files Browse the repository at this point in the history
The PR extends the functionality beyond the EcoSystem `nuget`, so that we will also receive dependency updates for `GitHub-Actions` in the future.

In addition, the PR build pipeline has been extended so that an additional step is now performed in the case of `dependabot[bot]` pull requests, which automates these PRs `merged` based on the configurations.
  • Loading branch information
samtrion committed Dec 6, 2024
1 parent e423a63 commit ce01974
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,18 @@ updates:
- "enhancement"
# Allow up to 5 open pull requests for nuget dependencies
open-pull-requests-limit: 5

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "daily"
reviewers:
- "tinohager
- "samtrion"
commit-message:
prefix: chore
labels:
- "dependencies"
- "enhancement"
# Allow up to 5 open pull requests for nuget dependencies
open-pull-requests-limit: 5
17 changes: 17 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
paths:
- 'src/**'
- '.github/workflows/**'
branches: [ main ]

jobs:
Expand All @@ -32,3 +33,19 @@ jobs:
working-directory: ./src
run: |
dotnet test --configuration Release --no-restore --no-build --verbosity normal
dependabot:
name: Dependabot Auto Merge
runs-on: ubuntu-latest
needs:
- build
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}

steps:
- name: Dependabot Auto Merge
uses: dailydevops/dependamerge-action@v1.2.19
with:
token: ${{ secrets.DEPENDABOT }}
command: squash
handle-submodule: true
target: minor

0 comments on commit ce01974

Please sign in to comment.