Commit e504179b1ba for woocommerce
commit e504179b1ba1f3d970b4eefa0ef952340edeba0e
Author: Jorge A. Torres <jorge.torres@automattic.com>
Date: Tue Dec 1 21:00:41 2026 +0000
[Release] Append to an already-compiled patch changelog instead of replacing it (#71489)
diff --git a/.github/workflows/release-compile-changelog.yml b/.github/workflows/release-compile-changelog.yml
index 57dec1da493..d88b1851e59 100644
--- a/.github/workflows/release-compile-changelog.yml
+++ b/.github/workflows/release-compile-changelog.yml
@@ -187,12 +187,10 @@ jobs:
# append_changelog: auto.
if [[ -z "${{ github.event.inputs.append_changelog }}" || "${{ github.event.inputs.append_changelog }}" == "auto" ]]; then
- # If a prerelease, append if there's already content in the changelog.
- if [[ "$VERSION" == *"-"* || "$VERSION" =~ \.0$ ]]; then
- # No pipe: under pipefail, grep -q exiting early can SIGPIPE the writer and fail this check.
- if awk '/== Changelog ==/{f=1} f && index($0, "**WooCommerce**"){found=1; exit} END{exit !found}' release-branch/plugins/woocommerce/readme.txt; then
- APPEND_CHANGELOG="--append-changelog"
- fi
+ # Append if this version's changelog section already has content.
+ # No pipe: under pipefail, grep -q exiting early can SIGPIPE the writer and fail this check.
+ if awk '/== Changelog ==/{f=1} f && index($0, "**WooCommerce**"){found=1; exit} END{exit !found}' release-branch/plugins/woocommerce/readme.txt; then
+ APPEND_CHANGELOG="--append-changelog"
fi
elif [[ "${{ github.event.inputs.append_changelog }}" == "append" ]]; then
# append_changelog: append.