[VAN-122988] Renamed sdk directory since it won't have sdks inside. #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate SDKs | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'release-**' | ||
jobs: | ||
preprocess-specifications: | ||
name: Setup Environment | ||
runs-on: ubuntu-latest | ||
env: | ||
ORIG_SPEC_DIR: ${{ github.workspace }}/res | ||
SPEC_DIR: ${{ github.workspace }}/specs_preprocessed | ||
PREPROCESSING_DIR: ${{ github.workspace }}/sdk-blueprints/preprocessing | ||
steps: | ||
- name: Checkout workflow repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- 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 preprocessed specifications as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: processed-specs-${{ github.ref_name }} | ||
path: ${{ env.SPEC_DIR }} | ||
retention-days: 7 | ||
generate-python-sdk: | ||
name: Generate Python SDK | ||
needs: setup-environment | ||
Check failure on line 39 in .github/workflows/generate-sdks.yml
|
||
uses: ./.github/workflows/generate-python-sdk.yml | ||
secrets: inherit |