Skip to content

[VAN-122988] Split into actions #52

[VAN-122988] Split into actions

[VAN-122988] Split into actions #52

name: Generate SDKs
on:
workflow_dispatch:
push:
branches:
- 'release-**'
env:
SPEC_DIR: ${{ github.workspace }}/specs_preprocessed
PYTHON_DIR: ${{ github.workspace }}/sdks/python
BRANCH_NAME: ${{ github.ref_name }}
SPECIFICATIONS: |
consolidated-analytics-apis,
tenant-management-apis
jobs:
preprocess-specifications:
name: Setup Environment
runs-on: ubuntu-latest
env:
ORIG_SPEC_DIR: ${{ github.workspace }}/res
steps:
- name: Checkout workflow repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Preprocess OpenAPI specs
id: preprocess
run: |
python3 -m pip install -r $PYTHON_DIR/processing/requirements.txt
python3 $PYTHON_DIR/processing/spec_preprocessing.py $ORIG_SPEC_DIR $SPEC_DIR
- name: Upload artifact processed specs
uses: actions/upload-artifact@v3
with:
name: processed-specs-${{ env.BRANCH_NAME }}
path: ${{ env.SPEC_DIR }}
retention-days: 7
call-generate-python-sdk:
name: Call Generate Python SDK Workflow
runs-on: ubuntu-latest
needs: preprocess-specifications
uses: ./.github/workflows/generate_python_sdk.yml

Check failure on line 47 in .github/workflows/generate-python-driver.yml

View workflow run for this annotation

GitHub Actions / Generate SDKs

Invalid workflow file

The workflow is not valid. .github/workflows/generate-python-driver.yml (Line: 47, Col: 5): Unexpected value 'uses' .github/workflows/generate-python-driver.yml (Line: 48, Col: 5): Unexpected value 'with'
with:
BRANCH_NAME: ${{ env.BRANCH_NAME }}
SPEC_DIR: ${{ env.SPEC_DIR }}