diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index f6c96d05..24ff4a28 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -29,11 +29,10 @@ jobs: - name: Check for updated CHANGELOG.md run: | git fetch origin ${{ github.event.pull_request.base.ref }} - echo "diffing HEAD" - git diff HEAD - - echo "running git diff between HEAD and target" - git diff origin/${{ github.event.pull_request.base.ref }}...HEAD + echo "diffing HEAD and HEAD^1" + git diff HEAD HEAD^1 + echo "diffing HEAD and HEAD^2" + git diff HEAD HEAD^2 if git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD | grep -q 'CHANGELOG.md'; then echo "CHANGELOG.md has been updated."