Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 18, 2021
1 parent 7eed403 commit f5048fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tools/check-minimal-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
# Note:
# - This script modifies Cargo.toml and Cargo.lock while running
# - This script exits with 1 if there are any unstaged changes on Cargo.toml
# - This script requires nightly toolchain and cargo-hack
# - This script requires nightly toolchain and cargo-hack <https://github.com/taiki-e/cargo-hack>
#
# Refs: https://github.com/rust-lang/cargo/issues/5657

set -euo pipefail
IFS=$'\n\t'

cd "$(cd "$(dirname "$0")" && pwd)"/..

error() {
if [[ -n "${GITHUB_ACTIONS:-}" ]]; then
echo "::error::$*"
Expand All @@ -23,12 +25,10 @@ error() {
fi
}

cd "$(cd "$(dirname "${0}")" && pwd)"/..

# Decide Rust toolchain.
# Nightly is used by default if the `CI` environment variable is unset.
if [[ "${1:-}" == "+"* ]]; then
toolchain="${1}"
toolchain="$1"
shift
elif [[ -z "${CI:-}" ]]; then
toolchain="+nightly"
Expand All @@ -43,7 +43,7 @@ fi
# Decide subcommand.
subcmd="check"
if [[ "${1:-}" =~ ^(check|test)$ ]]; then
subcmd="${1}"
subcmd="$1"
shift
fi

Expand Down
1 change: 0 additions & 1 deletion tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ done
# https://github.com/taiki-e/parse-changelog
echo "============== CHANGELOG =============="
parse-changelog CHANGELOG.md "${version}"
echo
echo "======================================="

# Make sure the same release has not been created in the past.
Expand Down

0 comments on commit f5048fc

Please sign in to comment.