[VAN-122988] Split into actions #52
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-**' | ||
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
|
||
with: | ||
BRANCH_NAME: ${{ env.BRANCH_NAME }} | ||
SPEC_DIR: ${{ env.SPEC_DIR }} |