Skip to content

Commit

Permalink
Add logging and remove redundant escape and quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zifah authored Aug 5, 2024
1 parent 2b4c25d commit 800a709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/api-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
sudo systemctl restart $SERVICE_NAME
sleep 3
STATUS=\$(sudo systemctl is-active $SERVICE_NAME)
if [ '\$STATUS' != 'active' ]; then
echo "The service $SERVICE_NAME is currently $STATUS)
if [ $STATUS != 'active' ]; then
sudo systemctl status $SERVICE_NAME --no-pager
exit 1
else
Expand Down

0 comments on commit 800a709

Please sign in to comment.