Fix file exists checks
This commit is contained in:
+2
-2
@@ -29,12 +29,12 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
path="${{ inputs.path }}"
|
path="${{ inputs.path }}"
|
||||||
path="${path%/}"
|
path="${path%/}"
|
||||||
if [[ -d "${path}" ]]; then
|
if [[ ! -d "${path}" ]]; then
|
||||||
echo "::error ::Could not find specified configuration path: ${path}"
|
echo "::error ::Could not find specified configuration path: ${path}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "${path}/configuration.yaml" ]]; then
|
if [[ ! -f "${path}/configuration.yaml" ]]; then
|
||||||
echo "::error ::Could not find configuration.yaml file in: ${path}"
|
echo "::error ::Could not find configuration.yaml file in: ${path}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user