-
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 git mocking for infer based deploy
- Loading branch information
1 parent
828a766
commit b7d8981
Showing
2 changed files
with
19 additions
and
1 deletion.
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
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 "e2e-setup/astro-project/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 |