We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba99229 commit 0f484f3Copy full SHA for 0f484f3
.github/workflows/deploy.yml
@@ -52,13 +52,14 @@ jobs:
52
cd ~/radar
53
54
echo "Pulling latest code..."
55
- if [ -d ".git" ]; then
56
- git fetch origin
57
- git reset --hard origin/main
58
- else
59
- git clone https://github.com/Syntax-Error-1337/radar.git .
+ if [ ! -d ".git" ]; then
+ git init
+ git remote add origin https://github.com/Syntax-Error-1337/radar.git
60
fi
61
+ git fetch origin
+ git reset --hard origin/main
62
+
63
echo "Stopping containers..."
64
docker-compose down || true
65
0 commit comments