-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests for default case and address code review comments
- Loading branch information
1 parent
97d3b2b
commit e49d5e6
Showing
4 changed files
with
143 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# hack to mock git commands as part of action.yaml so that we could simulate dags only deploy scenario without making any additional commits | ||
|
||
# Check if the script was invoked with "git diff" | ||
if [[ "$1" == "diff" ]]; then | ||
echo "dags/exampledag.py" | ||
elif [[ "$1" == "fetch" ]]; then | ||
echo "Handling git fetch, doing nothing" | ||
else | ||
echo "Error: git mock script isn't configured to handle $1" >&2 | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# hack to mock git commands as part of action.yaml so that we could simulate image deploy scenario without making any additional commits | ||
|
||
# Check if the script was invoked with "git diff" | ||
if [[ "$1" == "diff" ]]; then | ||
echo "Dockerfile" | ||
elif [[ "$1" == "fetch" ]]; then | ||
echo "Handling git fetch, doing nothing" | ||
else | ||
echo "Error: git mock script isn't configured to handle $1" >&2 | ||
exit 1 | ||
fi |