post-release.sh 351 B

1234567
  1. #!/bin/bash
  2. set -eu
  3. git checkout master && git pull
  4. # shellcheck disable=SC2001
  5. ./scripts/bump-version.sh '' "$(date -d "$(echo "$CRAFT_NEW_VERSION" | sed -e 's/^\([0-9]\{2\}\)\.\([0-9]\{1,2\}\)\.[0-9]\+$/20\1-\2-1/') 1 month" +%y.%-m.0.dev0)"
  6. git diff --quiet || git commit -anm 'meta: Bump new development version' && git pull --rebase && git push