Skip to content

Commit

Permalink
Merge pull request #57 from TSRBerry/main
Browse files Browse the repository at this point in the history
Add dependabot auto-merge workflow & Fix dependabot.yml
  • Loading branch information
JoeStrout authored Jan 28, 2023
2 parents 9a321d0 + b7edce5 commit cf00ebb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- directory: "/M1"
- directory: "/Farmtronics"
open-pull-requests-limit: 5
package-ecosystem: "nuget"
commit-message:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/dependabot-PR-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Merge Dependabot PRs
on:
pull_request:
paths-ignore:
- ".github/workflows/**"

permissions:
pull-requests: write
contents: write
checks: read

jobs:
auto_merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- run: gh pr merge -s "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cf00ebb

Please sign in to comment.