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.
GooseMod/building/generateDevChangelog.sh

5 lines
285 B

#!/bin/sh
preface="### Based on commit $(git rev-parse HEAD | cut -c1-7), made $(date "+%d/%m %H:%M") UTC\n## Commits this release"
list="$(git log --pretty="format:%s" | grep -m 1 -B 100 "\[Release" | head -n -1 | awk '$0=" - "$0')"
echo -en "$preface\n$list" > dist/devChangelog.md