Skip to content

Commit

Permalink
testing4
Browse files Browse the repository at this point in the history
  • Loading branch information
StealWonders committed Mar 4, 2024
1 parent 9e1af4a commit 3fd4012
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-main-in-dev-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: |
ls -la
ls -la .git
test -L .git && echo "It's a symlink!"
.github/workflows/test-symlink
deploy:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-symlink
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Check if .git folder exists
if [ -d .git ]; then
# Check if .git folder is a symlink
if [ -L .git ]; then
echo ".git folder is a symlink"
exit 0
else
echo ".git folder is not a symlink"
exit 1
fi
else
echo ".git folder does not exist"
exit 1
fi

0 comments on commit 3fd4012

Please sign in to comment.