get-release-page.sh 242 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -eu
  3. VERSION="$1"
  4. CHANGELOG="$2"
  5. FRONTMATTER="$3"
  6. cat << END
  7. ---
  8. branch: v6
  9. version: $VERSION
  10. date: '$(date +'%Y-%m-%d')'
  11. $(cat "$FRONTMATTER")
  12. ---
  13. $(awk '/\* /{ FOUND=1; print; next } { if (FOUND) exit}' "$CHANGELOG")
  14. END