18 lines
309 B
Bash
Executable File
18 lines
309 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
tmp="$(mktemp -t "$(basename "$0").XXXXXXXXXX")"
|
|
|
|
log="$(git --no-pager log --no-merges --pretty="format: * %s (%an)" $PREVIOUS_VERSION..)"
|
|
|
|
printf "
|
|
$VERSION / $(date +"%Y-%m-%d")
|
|
==================
|
|
|
|
$log
|
|
" >"$tmp"
|
|
|
|
cat History.md >>"$tmp"
|
|
mv "$tmp" History.md
|
|
git add History.md
|