Skip to content

Commit

Permalink
chore(ci): fix changelog action for non-main base branches (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanStough authored May 8, 2023
1 parent c86f3d5 commit d7bf922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/changelog-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
changelog_file_path=".changelog/[_0-9]*.txt"
fi
changelog_files=$(git --no-pager diff --name-only HEAD "$(git merge-base HEAD "origin/main")" | egrep ${changelog_file_path})
changelog_files=$(git --no-pager diff --name-only HEAD "$(git merge-base HEAD "origin/${{ github.event.pull_request.base.ref }}")" | egrep -e "${changelog_file_path}"))
# If we do not find a file in .changelog/, we fail the check
if [ -z "$changelog_files" ]; then
Expand Down

0 comments on commit d7bf922

Please sign in to comment.