Skip to content

Commit

Permalink
update github changelog check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Lee committed Jan 9, 2024
1 parent e149cbd commit 1033cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/change-log-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 1033cb5

Please sign in to comment.