Skip to content

Commit

Permalink
Enable Dependabot updates for nuget and github-actions (#7)
Browse files Browse the repository at this point in the history
* Enable Dependabot updates for nuget and github-actions

Also enable Dependabot auto-merge

* Fix path to packages file
  • Loading branch information
Thilo-Acrolinx authored Aug 15, 2023
1 parent e20a06a commit 2a3e879
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
reviewers:
- abhijeetnarvekar
- package-ecosystem: "nuget"
directory: "/Acrolinx.Demo.Sidebar/"
schedule:
interval: "daily"
reviewers:
- abhijeetnarvekar
22 changes: 22 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ packages
sidebar-demo-dotnet.zip
.sonarqube
download

# Eclipse
.project

0 comments on commit 2a3e879

Please sign in to comment.