changelog.yml 632 B

12345678910111213141516171819202122232425262728
  1. name: changelog
  2. on:
  3. pull_request:
  4. types:
  5. - opened
  6. - synchronize
  7. - labeled
  8. - unlabeled
  9. concurrency:
  10. group: changelog-${{ github.ref }}
  11. cancel-in-progress: true
  12. jobs:
  13. check:
  14. runs-on: ubuntu-latest
  15. if: ${{ !contains(github.event.pull_request.labels.*.name, 'ignore-changelog') }}
  16. steps:
  17. - uses: actions/checkout@v3
  18. - name: Check diff
  19. run: |
  20. git fetch origin ${{ github.base_ref }} --depth=1
  21. if git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md ; then
  22. echo 'Missing changelog entry'
  23. exit 1
  24. fi