Skip to content

Commit

Permalink
add echo statements to help debug failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie McBride authored and Charlie McBride committed Apr 19, 2024
1 parent 279b50d commit e5f295f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/release/release.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail

echo "in release.sh"

SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
# shellcheck source=./common.sh
source "${SCRIPT_DIR}/common.sh"

echo "after source release.sh"

git_tag="$(git describe --exact-match --tags || echo "no tag")"
if [[ "${git_tag}" == "no tag" ]]; then
echo "Failed to release: commit is untagged"
Expand All @@ -18,4 +22,6 @@ if [[ "$(git status --porcelain)" != "" ]]; then
exit 1
fi

echo "before release command call"

release "${commit_sha}" "${git_tag#v}"

0 comments on commit e5f295f

Please sign in to comment.