From 7e823f479643a9aace72e07795891ce548e530a6 Mon Sep 17 00:00:00 2001 From: prezakhani <13303554+Pouyanpi@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:41:50 +0100 Subject: [PATCH] ci: add changelog enforcement fix --- .github/workflows/changelog.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 000000000..87a80608e --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,20 @@ +name: "Check CHANGELOG.md" +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + paths-ignore: + - "docs/colang-2/**" + - "nemoguardrails/colang/v2_x/**" + - "cli/**" + - ".github/**" + - "tests/**" + +jobs: + # Enforces the update of a changelog file on every pull request + changelog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dangoslen/changelog-enforcer@v2 + with: + changeLogPath: "CHANGELOG.md"