Skip to content
Open
Show file tree
Hide file tree
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
50 changes: 0 additions & 50 deletions .github/workflows/auto-release-notes.yml

This file was deleted.

50 changes: 25 additions & 25 deletions .github/workflows/consensus-node-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:
cancel-in-progress: false

env:
TARGET: learn/release-notes/services.mdx
TARGET: networks/release-notes/services.mdx
REPO: hiero-ledger/hiero-consensus-node

jobs:
Expand Down Expand Up @@ -56,38 +56,38 @@ jobs:
if [[ -n "${VERSION_INPUT}" ]]; then
# Single-version mode: validate and use exactly the requested version.
VERSION="${VERSION_INPUT#v}"
if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then
if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then
echo "Invalid version: ${VERSION_INPUT}" >&2
echo "Expected X.Y.Z or vX.Y.Z, for example 0.74.1 or v0.74.1." >&2
exit 1
fi
echo "${VERSION}" > "${RUNNER_TEMP}/versions.txt"
echo "${VERSION}" > "${RUNNER_TEMP}/versions.txt"
else
# Backfill mode: every stable release newer than the latest on the page.
gh release list \
--repo "${REPO}" \
--repo "${REPO}" \
--exclude-pre-releases \
--exclude-drafts \
--limit 100 \
--json tagName \
> "${RUNNER_TEMP}/releases.json"
> "${RUNNER_TEMP}/releases.json"

node .github/scripts/select-backfill-versions.js \
--target "${TARGET}" \
--releases "${RUNNER_TEMP}/releases.json" \
> "${RUNNER_TEMP}/versions.txt"
--target "${TARGET}" \
--releases "${RUNNER_TEMP}/releases.json" \
> "${RUNNER_TEMP}/versions.txt"
fi

COUNT="$(grep -c . "${RUNNER_TEMP}/versions.txt" || true)"
echo "count=${COUNT}" >> "${GITHUB_OUTPUT}"
COUNT="$(grep -c . "${RUNNER_TEMP}/versions.txt" || true)"
echo "count=${COUNT}" >> "${GITHUB_OUTPUT}"

if [[ "${COUNT}" -eq 0 ]]; then
if [[ "${COUNT}" -eq 0 ]]; then
echo "No missing releases — nothing to do."
else
echo "Will add $COUNT release(s):"
cat "${RUNNER_TEMP}/versions.txt"
cat "${RUNNER_TEMP}/versions.txt"
CSV="$(sed 's/^/v/' "$RUNNER_TEMP/versions.txt" | paste -sd, -)"
echo "versions_csv=${CSV}" >> "${GITHUB_OUTPUT}"
echo "versions_csv=${CSV}" >> "${GITHUB_OUTPUT}"
fi

- name: Generate MDX entries
Expand All @@ -103,31 +103,31 @@ jobs:
# Non-fatal: the script falls back to TODO dates if this is missing.
curl -sSfL --max-time 30 \
https://status.hedera.com/api/v2/scheduled-maintenances.json \
> "${RUNNER_TEMP}/status.json" || echo '{}' > "${RUNNER_TEMP}/status.json"
> "${RUNNER_TEMP}/status.json" || echo '{}' > "${RUNNER_TEMP}/status.json"

# Oldest-first so the newest release ends up prepended last (on top).
while IFS= read -r VERSION; do
[[ -z "${VERSION}" ]] && continue
[[ -z "${VERSION}" ]] && continue
echo "::group::v${VERSION}"
gh release view "v${VERSION}" \
--repo "${REPO}" \
--repo "${REPO}" \
--json body,tagName,url \
> "${RUNNER_TEMP}/release.json"
> "${RUNNER_TEMP}/release.json"

node .github/scripts/consensus-node-release-entry.js \
--version "${VERSION}" \
--release-json "${RUNNER_TEMP}/release.json" \
--target "${TARGET}" \
--status-json "${RUNNER_TEMP}/status.json"
echo "::endgroup::"
done < "${RUNNER_TEMP}/versions.txt"
--version "${VERSION}" \
--release-json "${RUNNER_TEMP}/release.json" \
--target "${TARGET}" \
--status-json "${RUNNER_TEMP}/status.json"
echo "::endgroup::"
done < "${RUNNER_TEMP}/versions.txt"

- name: Open pull request
if: steps.plan.outputs.count != '0'
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
add-paths: learn/release-notes/services.mdx
add-paths: networks/release-notes/services.mdx
commit-message: "docs: add consensus node release notes (${{ steps.plan.outputs.versions_csv }})"
signoff: true
sign-commits: true
Expand All @@ -149,5 +149,5 @@ jobs:
- [ ] For any new minor release, fill in the scaffolded `## Release vX.Y` release highlights + "What's new" accordion
- [ ] Confirm the auto-filled mainnet/testnet dates are correct (or fill any left as TODO if the status page had no date yet)
- [ ] Confirm each build block landed under the correct minor section, in descending order
- [ ] Check for breaking changes that warrant a callout
- [ ] Check for breaking changes that warrant a callout

48 changes: 24 additions & 24 deletions .github/workflows/mirror-node-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:
cancel-in-progress: false

env:
TARGET: learn/release-notes/mirror-node.mdx
TARGET: networks/release-notes/mirror-node.mdx
REPO: hiero-ledger/hiero-mirror-node

jobs:
Expand Down Expand Up @@ -56,39 +56,39 @@ jobs:
if [[ -n "${VERSION_INPUT}" ]]; then
# Single-version mode: validate and use exactly the requested version.
VERSION="${VERSION_INPUT#v}"
if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then
if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then
echo "Invalid version: ${VERSION_INPUT}" >&2
echo "Expected X.Y.Z or vX.Y.Z, for example 0.155.1 or v0.155.1." >&2
exit 1
fi
echo "${VERSION}" > "${RUNNER_TEMP}/versions.txt"
echo "${VERSION}" > "${RUNNER_TEMP}/versions.txt"
else
# Backfill mode: every stable release newer than the latest on the page.
gh release list \
--repo "${REPO}" \
--repo "${REPO}" \
--exclude-pre-releases \
--exclude-drafts \
--limit 100 \
--json tagName \
> "${RUNNER_TEMP}/releases.json"
> "${RUNNER_TEMP}/releases.json"

node .github/scripts/select-backfill-versions.js \
--target "${TARGET}" \
--releases "${RUNNER_TEMP}/releases.json" \
> "${RUNNER_TEMP}/versions.txt"
--target "${TARGET}" \
--releases "${RUNNER_TEMP}/releases.json" \
> "${RUNNER_TEMP}/versions.txt"
fi

COUNT="$(grep -c . "${RUNNER_TEMP}/versions.txt" || true)"
echo "count=${COUNT}" >> "${GITHUB_OUTPUT}"
COUNT="$(grep -c . "${RUNNER_TEMP}/versions.txt" || true)"
echo "count=${COUNT}" >> "${GITHUB_OUTPUT}"

if [[ "$COUNT" -eq 0 ]]; then
echo "No missing releases — nothing to do."
else
echo "Will add $COUNT release(s):"
cat "${RUNNER_TEMP}/versions.txt"
# Comma-separated v-prefixed list for the PR title/commit message.
CSV="$(sed 's/^/v/' "${RUNNER_TEMP}/versions.txt" | paste -sd, -)"
echo "versions_csv=${CSV}" >> "${GITHUB_OUTPUT}"
cat "${RUNNER_TEMP}/versions.txt"
# Comma-separated v-prefixed list for the PR title/commit message.
CSV="$(sed 's/^/v/' "${RUNNER_TEMP}/versions.txt" | paste -sd, -)"
echo "versions_csv=${CSV}" >> "${GITHUB_OUTPUT}"
fi

- name: Generate MDX entries
Expand All @@ -101,26 +101,26 @@ jobs:

# Oldest-first so the newest release ends up prepended last (on top).
while IFS= read -r VERSION; do
[[ -z "${VERSION}" ]] && continue
[[ -z "${VERSION}" ]] && continue
echo "::group::v${VERSION}"
gh release view "v${VERSION}" \
--repo "${REPO}" \
--json body,tagName,url \
> "${RUNNER_TEMP}/release.json"
--repo "${REPO}" \
--json body,tagName,url \
> "${RUNNER_TEMP}/release.json"

node .github/scripts/mirror-node-release-entry.js \
--version "${VERSION}" \
--release-json "${RUNNER_TEMP}/release.json" \
--target "${TARGET}"
echo "::endgroup::"
done < "${RUNNER_TEMP}/versions.txt"
--version "${VERSION}" \
--release-json "${RUNNER_TEMP}/release.json" \
--target "${TARGET}"
echo "::endgroup::"
done < "${RUNNER_TEMP}/versions.txt"

- name: Open pull request
if: steps.plan.outputs.count != '0'
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
add-paths: learn/release-notes/mirror-node.mdx
add-paths: networks/release-notes/mirror-node.mdx
commit-message: "docs: add mirror node release notes (${{ steps.plan.outputs.versions_csv }})"
signoff: true
sign-commits: true
Expand Down
Loading
Loading