From 3c21245f9434ded02d55e73e90d08c401ca902d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Anast=C3=A1cio?= Date: Sun, 12 Apr 2026 15:31:08 -0300 Subject: [PATCH 1/3] ci: fix changie check to use shell find instead of unknown command --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c05844f..774df94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,22 @@ env: SQL_PARSER_EX_BUILD: "1" jobs: + changelog: + name: Changelog check + runs-on: ubuntu-22.04 + if: github.event_name == 'pull_request' + + steps: + - uses: actions/checkout@v4 + + - name: Check for unreleased changelog entry + run: | + count=$(find .changes/unreleased -name "*.yaml" | wc -l) + if [ "$count" -eq 0 ]; then + echo "No changelog entry found. Please run 'changie new' to add one." + exit 1 + fi + test: name: Test (Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }}) runs-on: ubuntu-22.04 From d26aba42c229ba96f628cd78e371e9318e78d7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Anast=C3=A1cio?= Date: Sun, 12 Apr 2026 15:32:24 -0300 Subject: [PATCH 2/3] ci: use changie batch --dry-run to validate changelog entries --- .github/workflows/ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 774df94..a340841 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,13 +19,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Check for unreleased changelog entry - run: | - count=$(find .changes/unreleased -name "*.yaml" | wc -l) - if [ "$count" -eq 0 ]; then - echo "No changelog entry found. Please run 'changie new' to add one." - exit 1 - fi + - name: Validate changelog entries + uses: miniscruff/changie-action@v2 + with: + args: batch --dry-run 999.999.999 test: name: Test (Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }}) From 24599ad5abd6dc5a3c17823968481a75970b5405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Anast=C3=A1cio?= Date: Sun, 12 Apr 2026 15:42:06 -0300 Subject: [PATCH 3/3] ci: skip changelog check when 'Skip Changelog' label is present --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a340841..98337bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: branches: [main] pull_request: branches: [main] + types: [opened, reopened, synchronize, labeled, unlabeled] env: MIX_ENV: test @@ -14,7 +15,9 @@ jobs: changelog: name: Changelog check runs-on: ubuntu-22.04 - if: github.event_name == 'pull_request' + if: > + github.event_name == 'pull_request' && + !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') steps: - uses: actions/checkout@v4