Skip to content

Commit 28edaba

Browse files
committed
build: keep top-level files and Git directories
1 parent 118284b commit 28edaba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/run_tests_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ jobs:
293293
git fetch origin $BRANCH_NAME || true
294294
git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME
295295
296-
# Remove all files from the branch:
297-
git rm -rf .
296+
# Remove all directories except .github and .git from branch:
297+
find . -mindepth 1 -maxdepth 1 -type d -not -name '.github' -not -name '.git' -exec git rm -rf {} +
298298
else
299299
BRANCH_NAME="main"
300300
fi

0 commit comments

Comments
 (0)