Skip to content

Commit a63b98e

Browse files
fix: fix foas release process
1 parent 0f2639f commit a63b98e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/scripts/split_spec.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ foascli split -s openapi-foas.json --env "${target_env:?}" -o ./openapi/v2/opena
1010
mv -f "openapi-foas.json" "./openapi/v2.json"
1111

1212
foascli split -s openapi-foas.yaml --env "${target_env:?}" -o ./openapi/v2/openapi.yaml
13-
13+
mv -f "openapi-foas.yaml" "./openapi/v2.yaml"
1414
# Create folder if it does not exist
1515
mkdir -p ./openapi/v2/private
1616

1717
echo "Moving preview files to preview and private-preview folder"
1818
find ./openapi/v2 -type f -name "*private-preview*" -exec mv -f {} ./openapi/v2/private/ \;
1919

2020
echo "Generate the versions.json file for private preview APIs"
21-
foascli versions --spec openapi-foas.json --stability-level PRIVATE-PREVIEW -o ./openapi/v2/private/versions.json
22-
23-
mv -f "openapi-foas.yaml" "./openapi/v2.yaml"
21+
foascli versions --spec ./openapi/v2.json --stability-level PRIVATE-PREVIEW -o ./openapi/v2/private/versions.json

0 commit comments

Comments
 (0)