Skip to content

Commit

Permalink
chore(ci): fix changelog action for non-main base branches
Browse files Browse the repository at this point in the history
  • Loading branch information
DanStough committed May 4, 2023
1 parent bc693e6 commit 620a80b
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 620a80b

Please sign in to comment.