From 1dc5d27ee80e22bc380a74726b1aa3928dd7654f Mon Sep 17 00:00:00 2001 From: Stefano <80751983+StefanoStream@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:55:22 +0100 Subject: [PATCH] Update copy_stoplight_docs.yml Leaving git files --- .github/workflows/copy_stoplight_docs.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/copy_stoplight_docs.yml b/.github/workflows/copy_stoplight_docs.yml index 50400ec..d7bc52d 100644 --- a/.github/workflows/copy_stoplight_docs.yml +++ b/.github/workflows/copy_stoplight_docs.yml @@ -16,8 +16,7 @@ jobs: git push origin stoplight_docs --force - name: Removing all files except Markdown Files run: | - find . -mindepth 1 -type f ! -name "*.md" -delete - find . -mindepth 1 -type d -exec rm -rf {} + + find . -mindepth 1 -type f \( -not -name "*.md" -and -not -name ".gitignore" \) -delete -o -type d \( -not -name ".git" -and -not -name ".github" \) -exec rm -rf {} + - name: Commit Changes run: | git add .