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