Fix dependabot config
This commit is contained in:
parent
fb7899135e
commit
018e18bf8a
|
@ -1,5 +1,5 @@
|
||||||
name: Dependabot
|
name: Dependabot
|
||||||
on: pull_request
|
on: pull_request_target
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-merge:
|
auto-merge:
|
||||||
|
@ -7,13 +7,15 @@ 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.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
|
if: github.ref == 'refs/heads/master' &&
|
||||||
|
(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@v1
|
- uses: ahmadnassri/action-dependabot-auto-merge@v2
|
||||||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
|
if: github.ref == 'refs/heads/master' &&
|
||||||
|
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
|
||||||
with:
|
with:
|
||||||
target: patch
|
target: minor
|
||||||
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}
|
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue