Add support for auto-merge action

Upcoming replacement for lack of such feature in native dependabot, needs to be tested first
This commit is contained in:
JustArchi
2020-09-27 02:04:25 +02:00
parent e0ba7f2a92
commit 8bf47fc05a
2 changed files with 36 additions and 0 deletions

26
.github/workflows/auto-merge.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: ASF-auto-merge
on:
check_suite:
types:
- completed
pull_request:
types:
- edited
- labeled
- opened
- ready_for_review
- reopened
- synchronize
- unlabeled
- unlocked
jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- name: Auto-merge PR if deemed appropriate
uses: ridedott/merge-me-action@v1.6.7
with:
GITHUB_TOKEN: ${{ secrets.ASF_GITHUB_PERSONAL_TOKEN }}
PRESET: DEPENDABOT_MINOR

View File

@@ -388,3 +388,13 @@ jobs:
asset_path: out/ASF-win-x64.zip
asset_name: ASF-win-x64.zip
asset_content_type: application/zip
auto-merge:
needs:
- main
runs-on: ubuntu-latest
steps:
- name: Auto-merge PR if deemed appropriate
uses: ridedott/merge-me-action@v1.6.7
with:
GITHUB_TOKEN: ${{ secrets.ASF_GITHUB_PERSONAL_TOKEN }}
PRESET: DEPENDABOT_MINOR