anorgatarrak-wordpress-theme/node_modules/cheerio/scripts/prepublish

18 lines
309 B
Plaintext
Raw Normal View History

#!/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