dependabot-approve-merge.yml 765 B

1234567891011121314151617181920212223242526272829
  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. - master
  10. - stable*
  11. jobs:
  12. auto-approve-merge:
  13. if: github.actor == 'dependabot[bot]'
  14. runs-on: ubuntu-latest
  15. steps:
  16. # Github actions bot approve
  17. - uses: hmarr/auto-approve-action@v2
  18. with:
  19. github-token: ${{ secrets.GITHUB_TOKEN }}
  20. # Nextcloud bot approve and merge request
  21. - uses: ahmadnassri/action-dependabot-auto-merge@v2
  22. with:
  23. target: minor
  24. github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}