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 .