From ecc4f38006b5c5adb6369c7fc5f24f65a3c50907 Mon Sep 17 00:00:00 2001 From: Piotr Fus Date: Mon, 30 Oct 2023 09:05:27 +0100 Subject: [PATCH] SNOW-954008 Add changelog check --- .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..005b14959 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,20 @@ +name: Changelog Check + +on: + pull_request: + types: [opened, synchronize, labeled, unlabeled] + branches: + - master + +jobs: + check_change_log: + runs-on: ubuntu-latest + if: ${{!contains(github.event.pull_request.labels.*.name, 'NO-CHANGELOG-UPDATES')}} + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Ensure DESCRIPTION.md is updated + run: git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -wq "DESCRIPTION.md"