Updating dependabot-approve-merge.yml workflow from template

Signed-off-by: Nextcloud bot <bot@nextcloud.com>
This commit is contained in:
Nextcloud bot 2021-06-29 19:06:03 +00:00
parent 4a93c9a1d0
commit a09cede4ab
1 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,15 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
name: Dependabot name: Dependabot
on: pull_request_target
on:
pull_request_target:
branches:
- master
- stable*
jobs: jobs:
auto-merge: auto-merge:
@ -7,15 +17,13 @@ jobs:
steps: steps:
# Default github action approve # Default github action approve
- uses: hmarr/auto-approve-action@v2.0.0 - uses: hmarr/auto-approve-action@v2.0.0
if: github.ref == 'refs/heads/master' && if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
# Nextcloud bot approve and merge request # Nextcloud bot approve and merge request
- uses: ahmadnassri/action-dependabot-auto-merge@v2 - uses: ahmadnassri/action-dependabot-auto-merge@v1
if: github.ref == 'refs/heads/master' && if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
with: with:
target: minor target: minor
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }} github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}