You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dependabot-approve-merge.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #
  6. # SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
  7. # SPDX-License-Identifier: MIT
  8. name: Dependabot
  9. on:
  10. pull_request_target:
  11. branches:
  12. - main
  13. - master
  14. - stable*
  15. permissions:
  16. contents: read
  17. concurrency:
  18. group: dependabot-approve-merge-${{ github.head_ref || github.run_id }}
  19. cancel-in-progress: true
  20. jobs:
  21. auto-approve-merge:
  22. if: github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]'
  23. runs-on: ubuntu-latest-low
  24. permissions:
  25. # for hmarr/auto-approve-action to approve PRs
  26. pull-requests: write
  27. steps:
  28. # Github actions bot approve
  29. - uses: hmarr/auto-approve-action@b40d6c9ed2fa10c9a2749eca7eb004418a705501 # v2
  30. with:
  31. github-token: ${{ secrets.GITHUB_TOKEN }}
  32. # Nextcloud bot approve and merge request
  33. - uses: ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # v2
  34. with:
  35. target: minor
  36. github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}