Skip to content

Commit

Permalink
chore(feature): skip search by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Sep 22, 2024
1 parent 1879a1e commit 46c9bf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,15 @@ jobs:
(npm run oa version-manager set 4.0 && npm run oa version | grep -q '4.0.3') || exit 1
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1
(export OPENAPI_GENERATOR_CLI_SEARCH_URL=DEFAULT && npm run oa version-manager set 7.2.0 && npm run oa version | grep -q '7.2.0') || exit 1
json -I -f openapitools.json -e 'this["generator-cli"]["storageDir"]="./my/storage/"'
(npm run oa version-manager set 4.3.0 && npm run oa version | grep -q '4.3.0') || exit 1
test -f ./my/storage/4.3.0.jar || exit 1
json -I -f openapitools.json -e 'this["generator-cli"]["storageDir"]="~/my/storage/"'
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1
test -f ~/my/storage/4.3.1.jar || exit 1
npm run oa:generate && mkdir ./foo && cd ./foo && npm run oa:generate
(export OPENAPI_GENERATOR_CLI_SEARCH_URL=MAVEN && npm run oa version-manager set 7.2.0 && npm run oa version | grep -q '7.2.0') || exit 1
# release:
# if: github.event.pull_request.merged == 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class VersionManagerService {

getAll(): Observable<Version[]> {
// bypass querying serach.maven.org and use default versions instead
if (process.env.OPENAPI_GENERATOR_CLI_SEARCH_URL === 'DEFAULT' ) {
if (process.env.OPENAPI_GENERATOR_CLI_SEARCH_URL !== 'MAVEN' ) {
return this.getObservableVersions();
}

Expand Down

0 comments on commit 46c9bf2

Please sign in to comment.