Skip to content

Commit 4a63387

Browse files
authored
fix: add source input in run examples command (#120)
PR: #120
1 parent 71e6a28 commit 4a63387

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/run-examples.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Run Examples
22
on:
33
workflow_call:
44
inputs:
5+
source:
6+
description: 'Source of SDK to Test'
7+
required: true
8+
type: string
9+
default: 'specs'
510
sdk_version:
611
description: 'SDK version to run examples for'
712
required: false
@@ -39,7 +44,7 @@ jobs:
3944
with:
4045
repository: 'ExpediaGroup/rapid-java-sdk'
4146
- uses: actions/download-artifact@v4
42-
if: ${{ inputs.sdk_key != '' }}
47+
if: ${{ inputs.source == 'specs' }}
4348
with:
4449
name: ${{ inputs.sdk_key }}
4550
path: examples/sdk
@@ -49,7 +54,7 @@ jobs:
4954
java-version: ${{ inputs.jdk }}
5055
distribution: ${{ inputs.distribution }}
5156
- name: Install SDK into local repository
52-
if: ${{ inputs.sdk_key != '' }}
57+
if: ${{ inputs.source == 'specs' }}
5358
working-directory: examples/sdk
5459
run: mvn install
5560
- name: Run Examples

0 commit comments

Comments
 (0)