Aki Iwa
05/02/2023, 1:07 AMjohann
05/02/2023, 1:18 PMworkflow_dispatch
on your dagster cloud github action
• when you trigger it manually, github.event.number
is empty or errors?johann
05/02/2023, 1:22 PMAki Iwa
05/02/2023, 1:41 PMTraceback (most recent call last):
File "/create_or_update_comment.py", line 81, in <module>
main()
File "/create_or_update_comment.py", line 22, in main
pr_id = int(os.getenv("INPUT_PR"))
ValueError: invalid literal for int() with base 10: ''
When using workflow_dispatch, I want to assign a temporary value to INPUT_PR, but it does not work.
For now, I think the only solution is to create a separate action that does not use INPUT_PR.Aki Iwa
05/02/2023, 8:33 PM- name: Deploy to Dagster Cloud
uses: ./action-repo/actions/utils/deploy
id: deploy
with:
organization_id: ${{ inputs.organization_id }}
pr: "${{ github.event.number }}"
pr_status: "${{ github.event.pull_request.merged && 'merged' || github.event.pull_request.state }}"
location: ${{ inputs.location }}
image_tag: ${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
env:
DAGSTER_CLOUD_API_TOKEN: ${{ inputs.dagster_cloud_api_token }}
For example, we would be happy to be able to manually deploy with workflow_dispatch in an environment that uses MFA code in AWS.
I’ll list it in the github issue.Prratek Ramchandani
05/02/2023, 9:32 PM