From 1033cb5d94725351d3b324c8c16ad18c06f51fb1 Mon Sep 17 00:00:00 2001 From: Peter Lee Date: Tue, 9 Jan 2024 11:30:27 -0800 Subject: [PATCH] update github changelog check workflow --- .github/workflows/change-log-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/change-log-check.yml b/.github/workflows/change-log-check.yml index 116f0fd372..8314a60d34 100644 --- a/.github/workflows/change-log-check.yml +++ b/.github/workflows/change-log-check.yml @@ -17,7 +17,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog') }} run: | git fetch origin ${{ github.base_ref }} - CHANGELOG_DIFF=$(git diff origin/${{ github.base_ref }} ${{ github.ref_name }} -- changelog.md) + CHANGELOG_DIFF=$(git diff origin/${{ github.base_ref }} ${{ github.head_repo }}/${{ github.head_ref }} -- changelog.md) echo "${CHANGELOG_DIFF}" if [ -z "$CHANGELOG_DIFF" ]; then echo "ERROR: No changes detected in CHANGELOG.md. Please update the changelog."