diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-04-28 18:27:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 18:27:29 +0300 |
commit | fd2fabe21f213f3bf1148d45541fb371de3fbeb8 (patch) | |
tree | dd730d78c9c321829f663c171386c4a1a3044cb7 | |
parent | aba7ba4af20baa824d5eaa138e78a92659973b8e (diff) |
Create dependabot-approve-merge.yml
-rw-r--r-- | .github/workflows/dependabot-approve-merge.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/dependabot-approve-merge.yml b/.github/workflows/dependabot-approve-merge.yml new file mode 100644 index 0000000..e0e6bfa --- /dev/null +++ b/.github/workflows/dependabot-approve-merge.yml @@ -0,0 +1,30 @@ +# 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: + branches: + - main + - master + - stable* + +jobs: + auto-approve-merge: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + + steps: + # 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: + target: minor + github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }} |