Skip to content

Commit 43a1a2a

Browse files
authored
Update deploy-git-ssh-key.yml
1 parent 8087e36 commit 43a1a2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-git-ssh-key.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ jobs:
2525
git fetch origin main
2626
git reset --hard origin/main
2727
git clean -fd
28-
${{ secrets.RESTART_COMMAND }}
28+
if [ -n "${{ secrets.RESTART_COMMAND }}" ]; then
29+
eval "${{ secrets.RESTART_COMMAND }}"
30+
fi
2931
EOF

0 commit comments

Comments
 (0)