From 804a7ea1180c8ee351dcf45c9ed3a610c7c9e6ca Mon Sep 17 00:00:00 2001 From: "shishir.bhattarai" Date: Thu, 19 Dec 2024 16:15:48 +0200 Subject: [PATCH] Add runId output --- actions/utils/dagster-cloud-cli/action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/actions/utils/dagster-cloud-cli/action.yml b/actions/utils/dagster-cloud-cli/action.yml index 393f470d..44bf663b 100644 --- a/actions/utils/dagster-cloud-cli/action.yml +++ b/actions/utils/dagster-cloud-cli/action.yml @@ -5,9 +5,17 @@ inputs: required: true description: "The dagster-cloud cli command to run" +outputs: + run_id: + description: "The run ID returned by the command" + value: ${{ steps.dagster-cloud-cli.outputs.run_id }} + runs: using: "composite" steps: - id: dagster-cloud-cli - run: $GITHUB_ACTION_PATH/../../../generated/gha/dagster-cloud.pex -m dagster_cloud_cli.entrypoint ${{ inputs.command }} + run: | + output=$($GITHUB_ACTION_PATH/../../../generated/gha/dagster-cloud.pex -m dagster_cloud_cli.entrypoint ${{ inputs.command }}) + echo "$output" + echo "run_id=$output" >> $GITHUB_OUTPUT shell: bash