diff --git a/.github/scripts/split_spec.sh b/.github/scripts/split_spec.sh index 09607ac748..53ee31f7c3 100755 --- a/.github/scripts/split_spec.sh +++ b/.github/scripts/split_spec.sh @@ -2,7 +2,7 @@ set -eou pipefail echo "Running FOAS CLI versions command" -foascli versions -s openapi-foas.json -o ./openapi/v2/versions.json --env "${target_env:?}" +foascli versions -s openapi-foas.json -o ./openapi/v2/versions.json --env "${target_env:?}" --stability-level stable echo "Running FOAS CLI split command with the following --env=${target_env:?} and -o=./openapi/v2/openapi.json" @@ -11,3 +11,6 @@ mv -f "openapi-foas.json" "./openapi/v2.json" foascli split -s openapi-foas.yaml --env "${target_env:?}" -o ./openapi/v2/openapi.yaml mv -f "openapi-foas.yaml" "./openapi/v2.yaml" + +echo "Moving preview files to preview and private-preview folder" +find ./openapi/v2 -type f -name "*private-preview*" -exec mv -f {} ./openapi/private/ \; diff --git a/openapi/private/versions.json b/openapi/private/versions.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/openapi/private/versions.json @@ -0,0 +1 @@ +[] \ No newline at end of file