nextcloud/.github/workflows/dependabot-approve-merge.yml

30 lines
765 B
YAML
Raw Normal View History

# 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
on:
pull_request_target:
2021-07-27 08:16:41 +02:00
branches:
- master
- stable*
jobs:
2021-07-27 08:16:41 +02:00
auto-approve-merge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
2021-07-27 08:16:41 +02:00
steps:
2021-07-27 08:16:41 +02:00
# Github actions bot approve
- uses: hmarr/auto-approve-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Nextcloud bot approve and merge request
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
2021-05-28 12:25:03 +02:00
target: minor
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}