Sha256: fba08077e6a58d4594478eba05be5fd1ca019761b5b4670e5358f7c5e707a2d9
Contents?: true
Size: 797 Bytes
Versions: 1
Compression:
Stored size: 797 Bytes
Contents
#!/bin/bash # This script is a fucking tragedy. PROJECT="how_is" SCRIPT_DIR="$(dirname $(readlink -f $0))" # Directory this script is in. cd "$SCRIPT_DIR/.." LAST_RELEASE="$(git tag --list | cut -d 'v' -f 2 | sort -n | tail -n 1)" NEXT_RELEASE=$(cat lib/$PROJECT/version.rb | grep '^\s*VERSION\s*=\s*' | cut -d '"' -f 2) if [ -z "$LAST_RELEASE" ]; then echo "error: Could not find latest release using \`git tag --list\`" exit 1 fi if [ -z "$NEXT_RELEASE" ]; then echo "error: No version number found in $(pwd)lib/$PROEJCT/version.rb." exit 1 fi if [ "$LAST_RELEASE" == "$NEXT_RELEASE" ]; then echo "error: last release (\"$LAST_RELEASE\") and next release (\"$NEXT_RELEASE\") are equivalent." exit 1 fi bundle exec github_changelog_generator --future-release "v$NEXT_RELEASE"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
how_is-25.0.0 | bin/prerelease-generate-changelog |