Skip to content

Commit 1f0668a

Browse files
authored
chore: migrate run examples action to new self serve changes (#119)
PR: #119
1 parent 7081907 commit 1f0668a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/run-examples.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
required: false
1818
type: string
1919
default: 'corretto'
20-
sdk_generation_workflow_run_id:
21-
description: 'ID of the SDK generation workflow run'
20+
sdk_key:
21+
description: 'Generated SDK artifact key'
2222
required: false
2323
type: string
24-
default: ''
24+
default: 'sdk'
2525
secrets:
2626
KEY:
2727
description: 'API Key'
@@ -35,22 +35,21 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@v4
38-
if: ${{ inputs.sdk_generation_workflow_run_id != '' }}
38+
if: ${{ inputs.sdk_key != '' }}
3939
with:
4040
repository: 'ExpediaGroup/rapid-java-sdk'
41-
- uses: dawidd6/action-download-artifact@v6
42-
if: ${{ inputs.sdk_generation_workflow_run_id != '' }}
41+
- uses: actions/download-artifact@v4
42+
if: ${{ inputs.sdk_key != '' }}
4343
with:
44-
run_id: ${{ inputs.sdk_generation_workflow_run_id }}
45-
name: sdk
44+
name: ${{ inputs.sdk_key }}
4645
path: examples/sdk
4746
- name: Set up JDK
4847
uses: actions/setup-java@v4
4948
with:
5049
java-version: ${{ inputs.jdk }}
5150
distribution: ${{ inputs.distribution }}
5251
- name: Install SDK into local repository
53-
if: ${{ inputs.sdk_generation_workflow_run_id != '' }}
52+
if: ${{ inputs.sdk_key != '' }}
5453
working-directory: examples/sdk
5554
run: mvn install
5655
- name: Run Examples

0 commit comments

Comments
 (0)