From ee810cdb07e26bdb4aafec3d9111c4c40fac89dc Mon Sep 17 00:00:00 2001 From: frank zhu Date: Wed, 8 May 2024 15:47:16 -0700 Subject: [PATCH] fix: changesets release preview (#13149) * fix: changesets release preview * test changeset file * fix * fix * remove test stuff --- tools/ci/format_changelog | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tools/ci/format_changelog b/tools/ci/format_changelog index 7e508a1e129..c83948a1d47 100755 --- a/tools/ci/format_changelog +++ b/tools/ci/format_changelog @@ -1,5 +1,14 @@ #!/usr/bin/env bash +# This script will generate the next release using changeset. +# However, since changeset has its own semvar versioning system +# and we have our custom tags, this script rewrites the CHANGELOG.md +# with each tag as its header and group respective changeset that has +# the tag under it. +# +# The workflow is here: +# https://github.com/smartcontractkit/chainlink/actions/workflows/changesets-preview-pr.yml + set -euo pipefail if [[ -z "${GITHUB_OUTPUT:-}" ]]; then @@ -35,7 +44,7 @@ append_changelog_content() { continue fi changesets=$(jq -r --arg key "$tag" '.[$key] | join("\n\n")' tags.json) - read -d '' changelog_content <> $GITHUB_OUTPUT -read -d '' changelog_content <