changelog.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Changelog check
  2. on:
  3. merge_group:
  4. pull_request:
  5. types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
  6. jobs:
  7. changelog-check:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout code
  11. uses: actions/checkout@v4
  12. - name: Check which component is modified
  13. uses: dorny/paths-filter@v2
  14. id: changes
  15. with:
  16. filters: |
  17. riscv:
  18. - 'riscv/**'
  19. riscv-rt:
  20. - 'riscv-rt/**'
  21. riscv-pac:
  22. - 'riscv-pac/**'
  23. - name: Check for CHANGELOG.md (riscv)
  24. if: steps.changes.outputs.riscv == 'true'
  25. uses: dangoslen/changelog-enforcer@v3
  26. with:
  27. changeLogPath: ./riscv/CHANGELOG.md
  28. skipLabels: 'skip changelog'
  29. missingUpdateErrorMessage: 'Please add a changelog entry in the riscv/CHANGELOG.md file.'
  30. - name: Check for CHANGELOG.md (riscv-rt)
  31. if: steps.changes.outputs.riscv-rt == 'true'
  32. uses: dangoslen/changelog-enforcer@v3
  33. with:
  34. changeLogPath: ./riscv-rt/CHANGELOG.md
  35. skipLabels: 'skip changelog'
  36. missingUpdateErrorMessage: 'Please add a changelog entry in the riscv-rt/CHANGELOG.md file.'
  37. - name: Check for CHANGELOG.md (riscv-pac)
  38. if: steps.changes.outputs.riscv-pac == 'true'
  39. uses: dangoslen/changelog-enforcer@v3
  40. with:
  41. changeLogPath: ./riscv-pac/CHANGELOG.md
  42. skipLabels: 'skip changelog'
  43. missingUpdateErrorMessage: 'Please add a changelog entry in the riscv-pac/CHANGELOG.md file.'