Skip to content

Commit 8ee1206

Browse files
Push .github dir if exists
1 parent 51484b6 commit 8ee1206

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ ls -la "$CLONE_DIR"
2929

3030
TARGET_DIR=$(mktemp -d)
3131
mv "$CLONE_DIR/.git" "$TARGET_DIR"
32-
mv "$CLONE_DIR/.github" "$TARGET_DIR"
32+
# move .github related data if it exists
33+
if [ -d "$CLONE_DIR/.github" ]; then
34+
mv "$CLONE_DIR/.github" "$TARGET_DIR"
35+
fi
3336

3437
echo "Copying contents to git repo"
3538
cp -ra "$SOURCE_DIRECTORY"/. "$TARGET_DIR"

0 commit comments

Comments
 (0)