diff --git a/.github/workflows/trigger-e2e-environment.yml b/.github/workflows/trigger-e2e-environment.yml index 2db064993c..c75eb901e3 100644 --- a/.github/workflows/trigger-e2e-environment.yml +++ b/.github/workflows/trigger-e2e-environment.yml @@ -86,7 +86,9 @@ jobs: if (runs.data.workflow_runs.length > 0) { const runId = runs.data.workflow_runs[0].id; console.log(`Captured runId: ${runId}`); - return { runId }; + + // Set the runId as an output + core.setOutput('runId', runId); } else { throw new Error('No workflow run found.'); }