Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/scripts/update-release-changelog.sh
Original file line numberDiff line numberDiff line change
Expand Up@@ -145,9 +145,22 @@ checkout_or_create_branch "${CHANGELOG_BRANCH}" "${RELEASE_BRANCH}"

echo "Generating changelog for ${PLATFORM} ${VERSION}.."

yarn update-changelog \
# Use the calling repository's changelog policy when it defines the script.
# Preserve the legacy invocation for consumers that have not adopted it yet.
if yarn run --silent update-changelog --help >/dev/null 2>&1; then
yarn update-changelog \
--repo "${GITHUB_REPOSITORY_URL}" \
--currentVersion "${VERSION}"
else
echo "No update-changelog script found; using legacy auto-changelog invocation." >&2
yarn auto-changelog update --rc \
--repo "${GITHUB_REPOSITORY_URL}" \
--currentVersion "${VERSION}" \
--autoCategorize \
--useChangelogEntry \
--useShortPrLink \
--requirePrNumbers
fi

# commits.csv generation removed (no longer required)

Expand Down