passepartout-apple/scripts/after-release.sh
Davide De Rosa 9962401d74 Fix some issues in scripts
- Always use bash for consistent script behavior

- Replace deprecated set-output in GitHub workflows
2022-10-17 13:39:54 +02:00

16 lines
306 B
Bash
Executable File

#!/bin/bash
VERSION=$1
if [[ -z $VERSION ]]; then
echo "Version number required"
exit 1
fi
CHANGELOG_GLOB="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"