From c5fe4f5325085bcf97715afce16afeb3670b78dd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 18 Nov 2023 16:17:19 +0530 Subject: [PATCH] fix(ci): add job to validate changelog --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74af4ab3..054a22be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,11 +57,24 @@ jobs: base-ref: refs/heads/main head-ref: ${{ github.ref }} + validate-changelog: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Check changelog format + uses: mindsers/changelog-reader-action@b97ce03a10d9bdbb07beb491c76a5a01d78cd3ef # v2.2.2 + with: + path: ./CHANGELOG.md + validation_level: error + deploy-release-snapshot: runs-on: ubuntu-latest if: "github.event_name == 'push' && github.event.ref == 'refs/heads/main'" needs: - check + - validate-changelog - dependency-review steps: - name: Checkout repository