Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr3c10us authored Oct 10, 2023
1 parent 73f19f2 commit e82edf9
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,25 @@ jobs:
if [ -d /home/ubuntu/Wheelsdrive-CSMS ]; then
cd /home/ubuntu/Wheelsdrive-CSMS && git pull
else
git clone https://github.com/Pr3c10us/Wheelsdrive-CSMS.git /home/ubuntu/Wheelsdrive-CSMS
git clone https://github.com/Pr3c10us/Wheelsdrive-CSMS.git /home/ubuntu/Wheelsdrive-CSMS2
fi
cd /home/ubuntu/Wheelsdrive-CSMS/Backend/Api && sudo npm install && if sudo npm stop; then
# If command1 succeeds
echo "Command 1 succeeded"
# Run another command
sudo npm start
else
# If command1 fails
echo "Command 1 failed"
# Run a different command
sudo npm start
cd /home/ubuntu/Wheelsdrive-CSMS/Backend/WebSocket && sudo npm install && if sudo npm stop; then
# If command1 succeeds
echo "Command 1 succeeded"
# Run another command
sudo npm start
else
# If command1 fails
echo "Command 1 failed"
# Run a different command
sudo npm start
# cd /home/ubuntu/Wheelsdrive-CSMS/Backend/Api && sudo npm install && if sudo npm stop; then
# # If command1 succeeds
# echo "Command 1 succeeded"
# # Run another command
# sudo npm start
# else
# # If command1 fails
# echo "Command 1 failed"
# # Run a different command
# sudo npm start
# cd /home/ubuntu/Wheelsdrive-CSMS/Backend/WebSocket && sudo npm install && if sudo npm stop; then
# # If command1 succeeds
# echo "Command 1 succeeded"
# # Run another command
# sudo npm start
# else
# # If command1 fails
# echo "Command 1 failed"
# # Run a different command
# sudo npm start

0 comments on commit e82edf9

Please sign in to comment.