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 <