Update deploy script #180

Merged
romanskijdev merged 1 commits from fix-permissions into main 2026-10-13 15:00:44 +03:00
1 changed files with 4 additions and 3 deletions

View File

@ -182,10 +182,11 @@ jobs:
echo "✅ System service deployed"
echo "MIGRATIONS_DEPLOYED=true" >> $GITHUB_ENV
sleep 3
if sudo /usr/bin/systemctl is-active --quiet "$MIGRATIONS_SERVICE"; then
echo "✅ System service is running"
# Check if the service FAILED, rather than if it is ACTIVE
if ! sudo /usr/bin/systemctl is-failed --quiet "$MIGRATIONS_SERVICE"; then
echo "✅ System service executed successfully"
else
echo "❌ System service failed to start"
echo "❌ System service failed during execution"
sudo /usr/bin/journalctl -u "$MIGRATIONS_SERVICE" -n 30 --no-pager
exit 1
fi