You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
234 B
19 lines
234 B
3 years ago
|
#!/bin/bash
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
TAG="$1"
|
||
|
CHANGELOG="$2"
|
||
|
FRONTMATTER="$3"
|
||
|
|
||
|
cat << END
|
||
|
---
|
||
|
branch: v6
|
||
|
version: $TAG
|
||
|
date: '$(date +'%Y-%m-%d')'
|
||
|
$(cat "$FRONTMATTER")
|
||
|
---
|
||
|
|
||
|
$(awk '/\* /{ FOUND=1; print; next } { if (FOUND) exit}' "$CHANGELOG")
|
||
|
END
|