passepartout-apple/scripts/after-release.sh
Davide De Rosa 20a6ba1dc3 Reorganize scripts into subfolders
/  = Local scripts
  ci = Remote scripts (run by workflow)
util = Utilities
2021-10-05 19:27:02 +02:00

16 lines
323 B
Bash
Executable File

#!/bin/sh
VERSION=$1
if [[ -z $VERSION ]]; then
echo "Version number required"
exit 1
fi
CHANGELOG_GLOB="Passepartout/App/*/CHANGELOG.md"
ci/set-version.sh $VERSION
sed -i '' -E "s/(^and this project adheres.*$)/\1\n\n## Unreleased/" $CHANGELOG_GLOB
git add *.plist $CHANGELOG_GLOB
git commit -m "Bump version"