🐛(CI) fix job check changelog

The job was everytime failing.
This commit fixes the issue.
This commit is contained in:
Anthony LC
2024-05-30 17:47:40 +02:00
committed by Anthony LC
parent c05b98ce0d
commit d30ac8ee4e

View File

@@ -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