2020-09-07 12:43:49 +03:00
|
|
|
name: Dependabot
|
2021-05-28 13:25:03 +03:00
|
|
|
on: pull_request_target
|
2020-09-07 12:43:49 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
auto-merge:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
# Default github action approve
|
|
|
|
- uses: hmarr/auto-approve-action@v2.0.0
|
2021-05-28 13:25:03 +03:00
|
|
|
if: github.ref == 'refs/heads/master' &&
|
|
|
|
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
|
2020-09-07 12:43:49 +03:00
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
# Nextcloud bot approve and merge request
|
2021-05-28 13:25:03 +03:00
|
|
|
- uses: ahmadnassri/action-dependabot-auto-merge@v2
|
|
|
|
if: github.ref == 'refs/heads/master' &&
|
|
|
|
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
|
2020-09-07 12:43:49 +03:00
|
|
|
with:
|
2021-05-28 13:25:03 +03:00
|
|
|
target: minor
|
2020-09-07 12:43:49 +03:00
|
|
|
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}
|