mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
22 lines
377 B
Bash
Executable File
22 lines
377 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# To make it work on OSX (provided gnu-sed in installed)
|
|
if type gsed
|
|
then
|
|
alias sed=gsed
|
|
fi
|
|
|
|
|
|
version=$(jq --raw-output ' .version ' "package.json")
|
|
date=$(date +%Y-%m-%d)
|
|
|
|
sed \
|
|
--regexp-extended \
|
|
--in-place="" \
|
|
"s$^## \[Unreleased\]$\## [Unreleased\]\n\n\n## [${version}] - ${date}$" \
|
|
CHANGELOG.md
|
|
|
|
git add CHANGELOG.md
|