Skip to content

Commit

Permalink
NH-55892: fix the exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
xuan-cao-swi committed Jan 2, 2024
1 parent c9a54aa commit 84632c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/script/sw_build_and_push_gem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ gem_version=$(grep -E "VERSION\s*=\s*'[^']+'" "$found_file" | awk -F "'" '{print
gem build "opentelemetry-$GEM_NAME.gemspec"
gem push --key github --host https://rubygems.pkg.github.com/solarwinds "opentelemetry-$GEM_NAME-$gem_version.gem"

# finished
echo "Finished"
if [ $? -eq 0 ]; then
echo "Finished"
else
echo "Failed"
exit 1
fi

0 comments on commit 84632c0

Please sign in to comment.