Skip to content

Commit

Permalink
Change to Branch/Main to BASE_BRANCH
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatz committed Aug 19, 2024
1 parent d2918fb commit c5ef71a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:

- name: Check for changelog entry
run: |
if ! git diff --name-only origin/main | grep -q 'CHANGELOG.md'; then
echo "No changelog entry found. Please add an entry to CHANGELOG.md."
exit 1
fi
BASE_BRANCH=$(jq -r .base.ref < $GITHUB_EVENT_PATH)
if ! git diff --name-only $BASE_BRANCH | grep -q 'CHANGELOG.md'; then
echo "No changelog entry found. Please add an entry to CHANGELOG.md."
exit 1
fi

0 comments on commit c5ef71a

Please sign in to comment.