Skip to content

Commit

Permalink
fix bad indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton authored Dec 28, 2023
1 parent 8a315df commit 3d7f438
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions action.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -ueE -o pipefail
set -Eeuo pipefail

# =====================================
# AUTOMATIC GITHUB ENVIRONMENT VARIABLES
Expand Down Expand Up @@ -54,22 +54,22 @@ fi
function npm_publish {
local delay status
while true; do
delay="$((RANDOM%60))"
delay="$((RANDOM%60))"
echo "waiting ${delay} seconds..."
sleep "$delay"
sleep "$delay"
status=0 && npm publish "$@" || status=$?
if test "$status" -eq 0; then
echo "npm publish successful"
break
elif test "$status" -eq 409; then
echo "npm publish failed with conflict, trying again..."
continue
echo "npm publish successful"
break
elif test "$status" -eq 409; then
echo "npm publish failed with conflict, trying again..."
continue
else
echo "npm publish failed with exit status: $status"
return "$status"
fi
done
return 0
echo "npm publish failed with exit status: $status"
return "$status"
fi
done
return 0
}

# =====================================
Expand Down

0 comments on commit 3d7f438

Please sign in to comment.