diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bfadddc..67fd74da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com ## [Unreleased] +- Support specifying the version of `nextest`. ([#2](https://github.com/taiki-e/install-action/pull/3), thanks @sunshowers) + ## [1.2.1] - 2022-03-18 - Update `cargo-llvm-cov@latest` to 0.2.4. diff --git a/tools/publish.sh b/tools/publish.sh index ef251873..babd558d 100755 --- a/tools/publish.sh +++ b/tools/publish.sh @@ -66,6 +66,10 @@ echo "============== CHANGELOG ==============" parse-changelog CHANGELOG.md "${version}" echo "=======================================" +if ! git branch | grep -q '\* main'; then + bail "current branch is not 'main'" +fi + if [[ -n "${tags}" ]]; then # Create a release commit. git add CHANGELOG.md @@ -89,8 +93,8 @@ tools=( ( set -x - git push origin main git tag "${tag}" + git push origin main git push origin --tags version_tag="v${version%%.*}"