diff --git a/.github/workflows/script/sw_build_and_push_gem.sh b/.github/workflows/script/sw_build_and_push_gem.sh index 85abb32da..2ed2009d7 100755 --- a/.github/workflows/script/sw_build_and_push_gem.sh +++ b/.github/workflows/script/sw_build_and_push_gem.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + GEM_NAME="$1" cd "instrumentation/$GEM_NAME" || exit 1 @@ -17,5 +19,4 @@ gem_version=$(grep -E "VERSION\s*=\s*'[^']+'" "$found_file" | awk -F "'" '{print gem build "opentelemetry-instrumentation-$GEM_NAME.gemspec" gem push --key github --host https://rubygems.pkg.github.com/solarwinds "opentelemetry-instrumentation-$GEM_NAME-$gem_version.gem" -# finished echo "Finished"