From 68ffb914af807dbd81326c3ca78d16a743884945 Mon Sep 17 00:00:00 2001 From: Slavko Rihtaric Date: Fri, 12 Jul 2024 12:41:31 +0200 Subject: [PATCH] Docs to root dir so README links work --- .github/workflows/generate_sdk_code.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_sdk_code.yml b/.github/workflows/generate_sdk_code.yml index 48703da..4150451 100644 --- a/.github/workflows/generate_sdk_code.yml +++ b/.github/workflows/generate_sdk_code.yml @@ -60,7 +60,9 @@ jobs: run-id: ${{ github.event.client_payload.run_id }} - name: Remove old SDK - run: rm -rf src/* + run: | + rm -rf src/* + rm -rf docs/* - name: Set API and SDK versions run: | @@ -78,6 +80,7 @@ jobs: java -jar ${{ runner.temp }}/openapi-generator-cli.jar generate -i ${{ runner.temp }}/openapispec/openapi.yml -g php -o ./src -c ${{ runner.temp }}/${{ env.CONFIG_FILE }} --skip-validate-spec cp ./src/README.md ./README.md cp ./src/composer.json ./composer.json + cp -r ./src/docs ./docs - name: Create Pull Request id: cpr