chore: improve error handling (#533)
* chore: improve error handling * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update diff-sha.sh * Update diff-sha.sh * updated command. * Updated message level. * Updated message. * Updated message.
This commit is contained in:
@@ -71,7 +71,7 @@ if [[ -n $INPUT_PATH ]]; then
|
||||
|
||||
echo "::debug::Resolving repository path: $REPO_DIR"
|
||||
if [[ ! -d "$REPO_DIR" ]]; then
|
||||
echo "::warning::Invalid repository path: $REPO_DIR"
|
||||
echo "::error::Invalid repository path: $REPO_DIR"
|
||||
exit 1
|
||||
fi
|
||||
cd "$REPO_DIR"
|
||||
|
||||
Reference in New Issue
Block a user