Skip to content

Commit 4139203

Browse files
updated deletions
1 parent 54ddb43 commit 4139203

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tasks/dbt-docs-publish-to-repo/action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ runs:
9292
git commit -m "Added dbt docs for ${{ env.BRANCH_NAME }}"
9393
cd ..
9494
for folder in ./*/; do
95+
echo "checking folder $folder in file $branches_file_path"
9596
if grep -q $folder $branches_file_path; then
9697
echo "Keeping $folder"
9798
elif [ "$folder" == "./css/" ]; then
@@ -102,6 +103,8 @@ runs:
102103
echo "Keeping $folder"
103104
elif [ "$folder" == "./lib/" ]; then
104105
echo "Keeping $folder"
106+
elif [ "$folder" == "./${{ env.BRANCH_NAME }}/" ; then
107+
echo "Keeping current branch $folder"
105108
else
106109
echo "Deleting $folder"
107110
rm -rf $folder

0 commit comments

Comments
 (0)