Skip to content

Commit

Permalink
Pass through INPUT_DEPLOYMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
shalabhc committed Oct 13, 2023
1 parent d9993f7 commit 93f78e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions actions/build_deploy_python_executable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ runs:
- if: ${{ inputs.deploy == 'true' }}
run: >
cd $ACTION_REPO &&
INPUT_DEPLOYMENT=${{ inputs.deployment }}
/usr/bin/python src/deploy_pex.py
${{ inputs.dagster_cloud_file }}
--python-version=${{ inputs.python_version }}
Expand Down
2 changes: 1 addition & 1 deletion src/deploy_pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main():
project_dir = os.path.dirname(dagster_cloud_yaml)
deployment_name = get_branch_deployment_name(project_dir)
else:
# INPUT_DEPLOYMENT is automatically set by github to the `deployment:` input value, if provided
# INPUT_DEPLOYMENT is to the `deployment:` input value in action.yml
deployment_name = os.getenv("INPUT_DEPLOYMENT", "prod")
print(f"Deploying to a full deployment: {deployment_name}", flush=True)

Expand Down

0 comments on commit 93f78e5

Please sign in to comment.