Files
Pylontech-Battery-Monitoring/libraries/ArduinoJson/extras/scripts/get-release-body.sh
2023-05-14 11:02:22 +02:00

15 lines
258 B
Bash

#!/bin/bash
set -eu
TAG="$1"
CHANGELOG="$2"
cat << END
## Changes
$(awk '/\* /{ FOUND=1 } /^[[:space:]]*$/ { if(FOUND) exit } { if(FOUND) print }' "$CHANGELOG")
[View version history](https://github.com/bblanchon/ArduinoJson/blob/$TAG/CHANGELOG.md)
END