fix git diff command in changelog script
This commit is contained in:
parent
4d6225fc1e
commit
f1138af08b
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cl_diff=$(git diff --exit-code $GITHUB_HEAD_REF CHANGELOG.md)
|
cl_diff=$(git diff --exit-code $GITHUB_SHA -- CHANGELOG.md)
|
||||||
if [ -n "$cl_diff" ]; then
|
if [ -n "$cl_diff" ]; then
|
||||||
echo "Pull requests should not directly modify the main CHANGELOG.md file. For more information, please read changelogs/README.md"
|
echo "Pull requests should not directly modify the main CHANGELOG.md file. For more information, please read changelogs/README.md"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue