From 64647174b103cdf116fd9a684888db018ea0231e Mon Sep 17 00:00:00 2001 From: Stefano <80751983+StefanoStream@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:16:01 +0100 Subject: [PATCH] Update copy_stoplight_docs.yml Leaving md files --- .github/workflows/copy_stoplight_docs.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/copy_stoplight_docs.yml b/.github/workflows/copy_stoplight_docs.yml index 4a5b597..b649087 100644 --- a/.github/workflows/copy_stoplight_docs.yml +++ b/.github/workflows/copy_stoplight_docs.yml @@ -14,16 +14,9 @@ jobs: run: | git checkout -b stoplight_docs --force git push origin stoplight_docs --force - - name: Clean Stoplight Branch + - name: Removing all files except Markdown Files run: | - git checkout stoplight_docs - rm -rf ./* - - name: Create Stoplight Doc Directory - run: | - mkdir -p stoplight_docs - - name: Copy Markdown Files - run: | - cp -r *.md stoplight_docs/ + find . -mindepth 1 ! -name "*.md" -delete - name: Commit Changes run: | git add .