From d30ac8ee4e8cdd444409573b3f14e24188d694c2 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 30 May 2024 17:47:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(CI)=20fix=20job=20check=20changelo?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The job was everytime failing. This commit fixes the issue. --- .github/workflows/impress.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/impress.yml b/.github/workflows/impress.yml index 2219733b..0c042567 100644 --- a/.github/workflows/impress.yml +++ b/.github/workflows/impress.yml @@ -37,9 +37,11 @@ jobs: github.event_name == 'pull_request' steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 50 - name: Check that the CHANGELOG has been modified in the current branch - run: git whatchanged --name-only --pretty="" origin..HEAD | grep CHANGELOG + run: git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.after }} | grep 'CHANGELOG.md' lint-changelog: runs-on: ubuntu-latest