dependabot-approve-merge.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. name: Dependabot
  6. on:
  7. pull_request_target:
  8. branches:
  9. - main
  10. - master
  11. - stable*
  12. permissions:
  13. contents: read
  14. concurrency:
  15. group: dependabot-approve-merge-${{ github.head_ref || github.run_id }}
  16. cancel-in-progress: true
  17. jobs:
  18. auto-approve-merge:
  19. if: github.actor == 'dependabot[bot]'
  20. runs-on: ubuntu-latest-low
  21. permissions:
  22. # for hmarr/auto-approve-action to approve PRs
  23. pull-requests: write
  24. steps:
  25. # Github actions bot approve
  26. - uses: hmarr/auto-approve-action@b40d6c9ed2fa10c9a2749eca7eb004418a705501 # v2
  27. with:
  28. github-token: ${{ secrets.GITHUB_TOKEN }}
  29. # Nextcloud bot approve and merge request
  30. - uses: ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # v2
  31. with:
  32. target: minor
  33. github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}