changelog.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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-pac:
  20. - 'riscv-pac/**'
  21. riscv-rt:
  22. - 'riscv-rt/**'
  23. riscv-semihosting:
  24. - 'riscv-semihosting/**'
  25. - name: Check for CHANGELOG.md (riscv)
  26. if: steps.changes.outputs.riscv == 'true'
  27. uses: dangoslen/changelog-enforcer@v3
  28. with:
  29. changeLogPath: ./riscv/CHANGELOG.md
  30. skipLabels: 'skip changelog'
  31. missingUpdateErrorMessage: 'Please add a changelog entry in the riscv/CHANGELOG.md file.'
  32. - name: Check for CHANGELOG.md (riscv-pac)
  33. if: steps.changes.outputs.riscv-pac == 'true'
  34. uses: dangoslen/changelog-enforcer@v3
  35. with:
  36. changeLogPath: ./riscv-pac/CHANGELOG.md
  37. skipLabels: 'skip changelog'
  38. missingUpdateErrorMessage: 'Please add a changelog entry in the riscv-pac/CHANGELOG.md file.'
  39. - name: Check for CHANGELOG.md (riscv-rt)
  40. if: steps.changes.outputs.riscv-rt == 'true'
  41. uses: dangoslen/changelog-enforcer@v3
  42. with:
  43. changeLogPath: ./riscv-rt/CHANGELOG.md
  44. skipLabels: 'skip changelog'
  45. missingUpdateErrorMessage: 'Please add a changelog entry in the riscv-rt/CHANGELOG.md file.'
  46. - name: Check for CHANGELOG.md (riscv-semihosting)
  47. if: steps.changes.outputs.riscv-semihosting == 'true'
  48. uses: dangoslen/changelog-enforcer@v3
  49. with:
  50. changeLogPath: ./riscv-semihosting/CHANGELOG.md
  51. skipLabels: 'skip changelog'
  52. missingUpdateErrorMessage: 'Please add a changelog entry in the riscv-semihosting/CHANGELOG.md file.'