diff --git a/.github/workflows/api-deploy-staging.yml b/.github/workflows/api-deploy-staging.yml index 366ae92..1619dc1 100644 --- a/.github/workflows/api-deploy-staging.yml +++ b/.github/workflows/api-deploy-staging.yml @@ -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