Fixed changelog encoding & prepared re-release v26.4.1 (#745)
Build and Release / Determine run mode (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,updater, dmg) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Has been cancelled
Build and Release / Prepare & create release (push) Has been cancelled
Build and Release / Read metadata (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,updater, dmg) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,deb,updater, appimage,deb) (push) Has been cancelled
Build and Release / Publish release (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,deb,updater, appimage,deb) (push) Has been cancelled

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-04-17 19:30:13 +02:00
1 parent 7cead79245
commit 519abe4fc2
9 files changed
+80 -22

No files matched your search

+28 -17
View File
@@ -976,25 +976,36 @@ jobs:
FORMATTED_BUILD_TIME: ${{ needs.read_metadata.outputs.formatted_build_time }}
CHANGELOG: ${{ needs.read_metadata.outputs.changelog }}
run: |
run: |
# Read the platforms JSON, which was created in the previous step:
platforms=$(cat $GITHUB_WORKSPACE/.updates/platforms.json)
# Replace newlines in changelog with \n
changelog=$(echo "$CHANGELOG" | awk '{printf "%s\\n", $0}')
# Escape double quotes in changelog:
changelog=$(echo "$changelog" | sed 's/"/\\"/g')
# Create the latest.json file:
cat <<EOOOF > $GITHUB_WORKSPACE/release/assets/latest.json
{
"version": "$FORMATTED_VERSION",
"notes": "$changelog",
"pub_date": "$FORMATTED_BUILD_TIME",
"platforms": $platforms
}
EOOOF
# Create the latest.json file via jq so the changelog is escaped as valid JSON.
jq -n \
--arg version "$FORMATTED_VERSION" \
--arg notes "$CHANGELOG" \
--arg pub_date "$FORMATTED_BUILD_TIME" \
--argjson platforms "$platforms" \
'{
version: $version,
notes: $notes,
pub_date: $pub_date,
platforms: $platforms
}' > $GITHUB_WORKSPACE/release/assets/latest.json
- name: Validate latest.json
env:
CHANGELOG: ${{ needs.read_metadata.outputs.changelog }}
run: |
# Ensure the generated file is valid JSON and the changelog round-trips unchanged.
jq -e . $GITHUB_WORKSPACE/release/assets/latest.json > /dev/null
generated_notes=$(jq -r '.notes' $GITHUB_WORKSPACE/release/assets/latest.json)
if [[ "$generated_notes" != "$CHANGELOG" ]]; then
echo "The generated notes field does not match the changelog input."
exit 1
fi
- name: Show all release assets
run: ls -Rlhat $GITHUB_WORKSPACE/release/assets