Skip to content

Commit 2747920

Browse files
author
Taha ibn Munawar
committed
I was removing .git directory the entire time -_-, inshaAllah it would work now
1 parent fcad7fd commit 2747920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
mkdir /tmp/remote_dist
3535
cd /tmp/remote_dist
3636
sshpass -v -P "Enter passphrase for key" -p $SSH_PASSWORD git clone [email protected]:mutawwir-blog/mutawwir-blog.github.io
37-
rm -rf ./*
37+
ls -A | awk '!/^\.git.*$/ { print $0 }' | while read line; do rm -rf ./$line; done
3838
3939
# Copying contents of parent into child, without copying the child itself too
4040
echo comes here

0 commit comments

Comments
 (0)