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