Merge pull request #2620 from nextcloud/feat/workflow-auto-update-dependabot-approve-merge.yml

Updating dependabot-approve-merge.yml workflow from template
This commit is contained in:
Christoph Wurst 2022-09-29 13:36:20 +02:00 committed by GitHub
commit 020811c10b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 5 deletions

View File

@ -7,23 +7,30 @@ name: Dependabot
on:
pull_request_target:
branches:
branches:
- main
- master
- stable*
permissions:
contents: read
jobs:
auto-merge:
auto-approve-merge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
# for hmarr/auto-approve-action to approve PRs
pull-requests: write
steps:
# Default github action approve
# Github actions bot approve
- uses: hmarr/auto-approve-action@v2
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Nextcloud bot approve and merge request
- uses: ahmadnassri/action-dependabot-auto-merge@v2
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
with:
target: minor
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}