Skip to content

Commit 27dcbe5

Browse files
Fix issue with checking gem push exit code in release workflow (#564)
* Fix issue with checking gem push exit code in release workflow * Update .github/workflows/release.yml Co-authored-by: Jimmy Bourassa <jbourassa@gmail.com> --------- Co-authored-by: Jimmy Bourassa <jbourassa@gmail.com>
1 parent f28c30e commit 27dcbe5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ jobs:
108108
ls -l
109109
for i in *.gem; do
110110
if [ -f "$i" ]; then
111-
if ! gem push "$i" >push.out; then
112-
gemerr=$?
111+
gem push "$i" >push.out
112+
gemerr=$?
113+
if [ -n "$gemerr" ]; then
113114
sed 's/^/::error:: /' push.out
114115
if ! grep -q "Repushing of gem" push.out; then
115116
exit $gemerr

0 commit comments

Comments
 (0)