changelog.yaml 2.5 KB

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