-
Notifications
You must be signed in to change notification settings - Fork 14
CLOUDP-301106: Move preview specs to preview folder #433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
68aed82
420bf00
b2da64e
46b117d
1dc8baa
3dad32a
f84b446
aacdf75
fa367b8
17dfcf5
5e7e594
1deba60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,10 @@ | |
| 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 versions command for preview" | ||
| foascli versions -s openapi-foas.json -o ./openapi/preview/versions.json --env "${target_env:?}" --stability-level preview | ||
|
|
||
| echo "Running FOAS CLI split command with the following --env=${target_env:?} and -o=./openapi/v2/openapi.json" | ||
|
|
||
|
|
@@ -11,3 +14,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 folder" | ||
| find ./openapi/v2 -type f -name "*preview*" -exec mv -f {} ./openapi/preview/ \; | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that the PR has the
.keepfile. We should remove them and add.keepin the gitignoreThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i add it i can't keep the file, would like to keep it to avoid trying to create the folder during ci/cd
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can add a version.json file instead of the .keep. The file will be overriden in the next action run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
much better, thanks!