diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index e3326ab9..f6c96d05 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -19,6 +19,8 @@ jobs: run: | git fetch origin ${{ github.event.pull_request.base.ref }} git log + echo original HEAD + echo ${{ github.event.pull_request.head.sha }} echo HEAD git rev-parse HEAD echo origin/${{ github.event.pull_request.base.ref }} @@ -27,6 +29,12 @@ 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 + if git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD | grep -q 'CHANGELOG.md'; then echo "CHANGELOG.md has been updated." else