diff --git a/.github/workflows/changelog-check.yml b/.github/workflows/changelog-check.yml new file mode 100644 index 0000000..1a393c2 --- /dev/null +++ b/.github/workflows/changelog-check.yml @@ -0,0 +1,17 @@ +name: Changelog Check + +on: + pull_request: + branches: [master] + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + +jobs: + check-changelog: + runs-on: ubuntu-latest + steps: + # Gives an error if there's no change in the changelog (except using label) + - name: Changelog check + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: "CHANGELOG.md" + skipLabels: "no changelog entry needed, ci" diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f22c42..bb8a9c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Dev: Update Java source & target compatibility to 11. (#3) - Dev: Rewrite build.gradle into Kotlin DSL script. (#2) - Dev: Add shadow jar support. (#4, #6) +- Dev: Add changelog checker CI job. (#7) ## 1.2