From 350dbf4e6d05e857f17f14cdcbd3a9e5f2e5cba4 Mon Sep 17 00:00:00 2001 From: mohnoor94 Date: Wed, 21 Aug 2024 19:13:08 +0300 Subject: [PATCH] chore: update used refs --- .../workflows/selfserve-full-workflow.yaml | 45 +++++++++++-------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/.github/workflows/selfserve-full-workflow.yaml b/.github/workflows/selfserve-full-workflow.yaml index f4bf7a7e5..7281c6ecb 100644 --- a/.github/workflows/selfserve-full-workflow.yaml +++ b/.github/workflows/selfserve-full-workflow.yaml @@ -13,12 +13,12 @@ on: E.g., 1.0.0, 1.0.1, 1.0.0-SNAPSHOT, etc. required: true type: string - custom_templates: + sdk-repo-ref: description: | - Path to the custom templates directory. - Make sure to checkout the custom templates directory before setting this input. + Branch or tag to checkout on the `expediagroup-sdk-core` repository. + Leave empty to use the default branch. type: string - default: '-NA-' + default: '' base_templates: description: | Path to the base templates directory. @@ -26,6 +26,12 @@ on: Use `sdk-repo` to refer to the `expediagroup-sdk` repo root path if needed. type: string default: 'sdk-repo/generator/openapi/src/main/resources/templates/expediagroup-sdk' + custom_templates: + description: | + Path to the custom templates directory. + Make sure to checkout the custom templates directory before setting this input. + type: string + default: '-NA-' combined_templates_key: description: 'Key to the combined templates artifact' type: string @@ -38,7 +44,7 @@ on: default: '' ref: description: | - Branch or tag to checkout on the `expediagroup-sdk` repository. + Branch or tag to checkout on the provided repository. Leave empty to use the default branch. type: string default: '' @@ -84,19 +90,20 @@ jobs: steps: - name: Show inputs run: | - echo "name: ${{ inputs.name }}" - echo "version: ${{ inputs.version }}" - echo "custom_templates: ${{ inputs.custom_templates }}" - echo "base_templates: ${{ inputs.base_templates }}" - echo "combined_templates_key: ${{ inputs.combined_templates_key }}" - echo "repository: ${{ inputs.repository }}" - echo "ref: ${{ inputs.ref }}" - echo "specs_key: ${{ inputs.specs_key }}" - echo "specs_path: ${{ inputs.specs_path }}" - echo "transformed_specs_key: ${{ inputs.transformed_specs_key }}" - echo "transformations: ${{ inputs.transformations }}" - echo "sources_path: ${{ inputs.sources_path }}" - echo "sdk_key: ${{ inputs.sdk_key }}" + echo "SDK Name: ${{ inputs.name }}" + echo "SDK Version: ${{ inputs.version }}" + echo "SDK Repository Ref: ${{ inputs.sdk-repo-ref }}" + echo "Base Templates: ${{ inputs.base_templates }}" + echo "Custom Templates: ${{ inputs.custom_templates }}" + echo "Combined Templates Key: ${{ inputs.combined_templates_key }}" + echo "Repository: ${{ inputs.repository }}" + echo "Ref: ${{ inputs.ref }}" + echo "Specs Key: ${{ inputs.specs_key }}" + echo "Specs Path: ${{ inputs.specs_path }}" + echo "Transformed Specs Key: ${{ inputs.transformed_specs_key }}" + echo "Transformations: ${{ inputs.transformations }}" + echo "Sources Path: ${{ inputs.sources_path }}" + echo "SDK Key: ${{ inputs.sdk_key }}" upload-specs: uses: ./.github/workflows/selfserve-upload-specs.yaml @@ -104,7 +111,7 @@ jobs: specs_key: ${{ inputs.specs_key }} specs_path: ${{ inputs.specs_path }} repository: ${{ inputs.repository }} - ref: ${{ inputs.ref }} + ref: ${{ inputs.sdk-repo-ref }} transform-specs: uses: ./.github/workflows/selfserve-transform-specs.yaml