-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle case when triggered event is a manual workflow_dispatch #97
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -315,6 +315,14 @@ runs: | |
|
||
DBT_DEPLOY=false | ||
|
||
# case when the triggered event is a manual workflow dispatch, we would need to deploy the dbt project because we cannot determine that it does not need to be deployed | ||
GITHUB_EVENT_BEFORE=${{ github.event.before }} | ||
GITHUB_EVENT_AFTER=${{ github.event.after }} | ||
if [[ -z $GITHUB_EVENT_BEFORE && -z $GITHUB_EVENT_AFTER ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: could we club both the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed |
||
DBT_DEPLOY=true | ||
files=() | ||
fi | ||
|
||
# case when the triggered event is a new branch or tag creation, we would need to deploy the dbt project because we cannot determine that it does not need to be deployed | ||
if [[ "${{ github.event.before }}" == "0000000000000000000000000000000000000000" ]] | ||
then | ||
|
@@ -368,6 +376,15 @@ runs: | |
DAGS_ONLY_DEPLOY=false | ||
SKIP_IMAGE_OR_DAGS_DEPLOY=true | ||
|
||
# case when the triggered event is a manual workflow dispatch, we would need to deploy the image because we cannot determine that it does not need to be deployed | ||
GITHUB_EVENT_BEFORE=${{ github.event.before }} | ||
GITHUB_EVENT_AFTER=${{ github.event.after }} | ||
Comment on lines
+373
to
+374
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we reuse these variables for the rest of the logic in this step? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for taking time to review. :-) Addressed. |
||
if [[ -z $GITHUB_EVENT_BEFORE && -z $GITHUB_EVENT_AFTER ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: could we club both the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed |
||
DAGS_ONLY_DEPLOY=false | ||
SKIP_IMAGE_OR_DAGS_DEPLOY=false | ||
files=() | ||
fi | ||
|
||
# case when the triggered event is a new branch or tag creation, we would need to deploy the image because we cannot determine that it does not need to be deployed | ||
if [[ "${{ github.event.before }}" == "0000000000000000000000000000000000000000" ]] | ||
then | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we reuse these variables for the rest of the logic in this step?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed