diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-20 19:59:22 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-20 19:59:22 +0300 |
| commit | 8bbabfc5b1c9f6f318e057d34848df8e791a6c48 (patch) | |
| tree | c6ef7fd599e05997f39dc2f4c5eb9a2bc3e25b2a /.github | |
| parent | 836fd7e585af15cc1ccb0d4f04586ffec28d2a3c (diff) | |
fix: harden release manifest update flow
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ec6a4cf..a6de5624 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -298,13 +298,14 @@ jobs: git show "${GITHUB_REF_NAME}:docs/next/product-announcement.json" > "$ANNOUNCEMENT_PATH" cp "$ANNOUNCEMENT_PATH" "$ANNOUNCEMENT_ORIGINAL_PATH" python3 scripts/changelog.py validate-product-announcement --path "$ANNOUNCEMENT_PATH" + RELEASE_PROTOCOL=$(git show "${GITHUB_REF_NAME}:src/server/protocol.rs" | python3 -c 'import re, sys; match = re.search(r"pub const PROTOCOL_VERSION: u32 = (\d+);", sys.stdin.read()); sys.exit(1) if match is None else print(match.group(1))') CURRENT_VERSION=$(python3 -c 'import json; print(json.load(open("website/latest.json")).get("version", ""))') if [ "$CURRENT_VERSION" = "$VERSION" ]; then echo "website/latest.json is already at v$VERSION" exit 0 fi - python3 scripts/changelog.py sync-latest-json --version "$VERSION" --output website/latest.json --announcement "$ANNOUNCEMENT_PATH" + python3 scripts/changelog.py sync-latest-json --version "$VERSION" --output website/latest.json --announcement "$ANNOUNCEMENT_PATH" --protocol "$RELEASE_PROTOCOL" if cmp -s "$ANNOUNCEMENT_ORIGINAL_PATH" docs/next/product-announcement.json; then printf 'null\n' > docs/next/product-announcement.json else |
