Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
Add dependabot-auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed May 8, 2021
1 parent 82d8d48 commit d2a84bf
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- match:
dependency_type: "development"
update_type: "all"
- match:
dependency_type: "production"
update_type: "semver:patch"
- match:
dependency_name: "rubocop*"
update_type: "all"
- match:
dependency_name: "minitest"
update_type: "all"
- match:
dependency_name: "parser"
update_type: "all"
- match:
dependency_name: "pry"
update_type: "all"
29 changes: 29 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: dependabot-auto-merge

on:
pull_request_target:

jobs:
auto-merge:
runs-on: ubuntu-latest

if: github.actor == 'dependabot[bot]'

steps:
- uses: actions/checkout@v2

- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
github-token: ${{ secrets.GH_PAT_DEPENDABOT_AUTO_MERGE }}
config: .github/dependabot-auto-merge.yml

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
if: "! success()"
continue-on-error: true
with:
job_name: '*auto-merge*'
type: ${{ job.status }}
icon_emoji: ":octocat:"
url: ${{ secrets.SLACK_WEBHOOK }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d2a84bf

Please sign in to comment.