summaryrefslogtreecommitdiffstats
path: root/.github/workflows/dependabot-approve-merge.yml
blob: 201d7f5ebf2a885121821692307da54a6517a991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Dependabot
on: pull_request

jobs:
  auto-merge:
    runs-on: ubuntu-latest
    steps:
      # Default github action approve
      - uses: hmarr/auto-approve-action@v2.0.0
        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@v1
        if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
        with:
          target: patch
          github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}