Skip to content

Commit

Permalink
Try fix action to check changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kruscpe1 committed Apr 18, 2024
1 parent 7acf7a4 commit 1774460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
run: |
git fetch origin ${{ github.base_ref }}
git checkout origin/${{ github.base_ref }}
BASE_CHANGELOG_HASH=$(git log -1 --format=format:%H -- CHANGELOG.md)
git checkout ${{ github.head_ref }}
HEAD_CHANGELOG_HASH=$(git log -1 --format=format:%H -- CHANGELOG.md)
BASE_CHANGELOG_HASH=$(git log -1 --format=format:%H -- docs/CHANGELOG.md)
git checkout ${GITHUB_HEAD_REF}
HEAD_CHANGELOG_HASH=$(git log -1 --format=format:%H -- docs/CHANGELOG.md)
if [ "$BASE_CHANGELOG_HASH" == "$HEAD_CHANGELOG_HASH" ]; then
echo "Changelog must be updated with every pull request."
Expand Down

0 comments on commit 1774460

Please sign in to comment.