Skip to content

Commit

Permalink
[VAN-122988] Renamed sdk directory since it won't have sdks inside.
Browse files Browse the repository at this point in the history
  • Loading branch information
timur-malikov_visier committed Jul 30, 2024
1 parent 1123913 commit da05594
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-python-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

env:
SPEC_DIR: ${{ github.workspace }}/specs_preprocessed
PYTHON_DIR: ${{ github.workspace }}/sdks/python
PYTHON_DIR: ${{ github.workspace }}/sdk-blueprints/python
SPECIFICATIONS: |
administration-apis,
analytic-model-apis,
Expand All @@ -20,7 +20,7 @@ jobs:
env:
PACKAGE_PREFIX: visier.sdk.api
PACKAGE_DIR: ${{ github.workspace }}/specs_preprocessed
SDK_REPO_DIR: ${{ github.workspace }}/sdks/generated
SDK_REPO_DIR: ${{ github.workspace }}/sdk-blueprints/generated

steps:
- name: Set up Corretto JDK 11
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/generate-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
env:
ORIG_SPEC_DIR: ${{ github.workspace }}/res
SPEC_DIR: ${{ github.workspace }}/specs_preprocessed
PREPROCESSING_DIR: ${{ github.workspace }}/sdks/preprocessing
PREPROCESSING_DIR: ${{ github.workspace }}/sdk-blueprints/preprocessing

steps:
- name: Checkout workflow repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Preprocess OpenAPI specs
- name: Preprocess OpenAPI specifications
id: preprocess
run: |
python3 -m pip install -r $PREPROCESSING_DIR/requirements.txt
python3 $PREPROCESSING_DIR/preprocessing.py $ORIG_SPEC_DIR $SPEC_DIR
- name: Upload artifact processed specs
- name: Upload preprocessed specifications as artifact
uses: actions/upload-artifact@v4
with:
name: processed-specs-${{ github.ref_name }}
Expand All @@ -38,11 +38,4 @@ jobs:
name: Generate Python SDK
needs: setup-environment
uses: ./.github/workflows/generate-python-sdk.yml
secrets: inherit
with:
specifications: |
administration-apis,
analytic-model-apis,
authentication-apis,
data-in-apis,
data-out-apis
secrets: inherit
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit da05594

Please sign in to comment.