Skip to content

Commit

Permalink
Automatically merge dependabot PRs when they've passed tests
Browse files Browse the repository at this point in the history
- Moving from the dependabot beta to the Github integrated one lost the ability to automerge, this should bring it back.
  • Loading branch information
bencalegari committed May 3, 2021
1 parent e910250 commit f36a285
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/autosquash-pr-when-tagged.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/label-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Label Actions
on:
pull_request:
types:
- labeled
status: {}

jobs:
autosquash:
if: github.event.label.name == 'autosquash'
name: Autosquash
runs-on: ubuntu-latest
steps:
- uses: tibdex/[email protected]
with:
github_token: ${{ secrets.BOT_GITHUB_KEY }}
automerge-dependabot:
if: github.event.label.name == 'dependencies'
name: Automerge Dependabot PRs
runs-on: ubuntu-latest
steps:
- name: Dependabot Auto Merge
uses: ahmadnassri/[email protected]
with:
github_token: ${{ secrets.BOT_GITHUB_KEY }}

0 comments on commit f36a285

Please sign in to comment.