Skip to content

Commit

Permalink
Update release-v2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev authored Nov 17, 2023
1 parent 77d9597 commit 776b768
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,18 @@ jobs:
HOST: ${{ secrets.SSH_HOST }}
DIR: ${{ secrets.SSH_DIR }}
run: |
sudo apt-get install sshpass
sshpass -p "$PASSWORD" ssh "$USERNAME@$HOST" "
cmd="
cd $DIR
if [ -f application.pid ]
then
echo "Application is running."
echo "Application is running." >> "$GITHUB_STEP_SUMMARY"
kill $(cat application.pid)
while [ -f application.pid ]
do
sleep 5
done
else
echo "Application is not running."
echo "Application is not running." >> "$GITHUB_STEP_SUMMARY"
fi
"
sshpass -p "$PASSWORD" ssh "$USERNAME@$HOST" "$cmd" >> "$GITHUB_STEP_SUMMARY"

0 comments on commit 776b768

Please sign in to comment.