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:
Tonye Jack
2022-06-24 00:17:41 -04:00
committed by GitHub
parent 3fac642ac6
commit 3df9c18651
3 changed files with 26 additions and 8 deletions

View File

@@ -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"