Skip to content

Commit 6bde71a

Browse files
authored
CLOUDP-301106: Move preview specs to preview folder (#433)
1 parent 6b8cb8f commit 6bde71a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/scripts/split_spec.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eou pipefail
33

44
echo "Running FOAS CLI versions command"
5-
foascli versions -s openapi-foas.json -o ./openapi/v2/versions.json --env "${target_env:?}"
5+
foascli versions -s openapi-foas.json -o ./openapi/v2/versions.json --env "${target_env:?}" --stability-level stable
66

77
echo "Running FOAS CLI split command with the following --env=${target_env:?} and -o=./openapi/v2/openapi.json"
88

@@ -11,3 +11,6 @@ mv -f "openapi-foas.json" "./openapi/v2.json"
1111

1212
foascli split -s openapi-foas.yaml --env "${target_env:?}" -o ./openapi/v2/openapi.yaml
1313
mv -f "openapi-foas.yaml" "./openapi/v2.yaml"
14+
15+
echo "Moving preview files to preview and private-preview folder"
16+
find ./openapi/v2 -type f -name "*private-preview*" -exec mv -f {} ./openapi/private/ \;

openapi/private/versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

0 commit comments

Comments
 (0)