#!/bin/bash set -eu # ----------- UPDATE REPO ----------- git config --global user.email "bot@galoy.io" git config --global user.name "CI Bot" pushd repo VERSION="$(cat ../version/version)" cat <new_change_log.md # [galoy-cli release v${VERSION}](https://github.com/GaloyMoney/galoy-cli/releases/tag/v${VERSION}) $(cat ../artifacts/gh-release-notes.md) $(cat CHANGELOG.md) EOF mv new_change_log.md CHANGELOG.md sed -i'' "s/^version.*/version = \"${VERSION}\"/" Cargo.toml cargo check git status git add . if [[ "$(git status -s -uno)" != "" ]]; then git commit -m "ci(release): release version $(cat ../version/version)" fi