Skip to content

Commit

Permalink
Add runId output
Browse files Browse the repository at this point in the history
  • Loading branch information
bhattarai842 committed Dec 19, 2024
1 parent 32181d5 commit 804a7ea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion actions/utils/dagster-cloud-cli/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 804a7ea

Please sign in to comment.