pr-to-master.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: PR to master
  2. on:
  3. pull_request:
  4. branches:
  5. - master
  6. # Only following types are handled by the action, but one can default to all as well
  7. types: [opened, reopened, edited, synchronize]
  8. concurrency:
  9. group: ${{ github.workflow }}-${{ github.ref }}
  10. cancel-in-progress: true
  11. jobs:
  12. # Refs: https://github.com/release-drafter/release-drafter
  13. auto-labeling:
  14. runs-on: ubuntu-latest
  15. if: |
  16. !contains(github.event.pull_request.labels.*.name, 'exclude from changelog')
  17. steps:
  18. - uses: release-drafter/release-drafter@v5
  19. with:
  20. disable-releaser: true
  21. env:
  22. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  23. check-title:
  24. runs-on: ubuntu-latest
  25. if: |
  26. (!contains( github.event.pull_request.labels.*.name, 'exclude from changelog' ) &&
  27. !startsWith( github.head_ref, 'dependabot/' ))
  28. steps:
  29. - uses: amannn/action-semantic-pull-request@v5.0.2
  30. with:
  31. types: |
  32. feat
  33. imprv
  34. fix
  35. support
  36. chore
  37. ci
  38. docs
  39. test
  40. requireScope: false
  41. env:
  42. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}