catch both possible empty list types
This commit is contained in:
@@ -51,7 +51,7 @@ jobs:
|
||||
run: |
|
||||
APPS=$(jq --raw-output '.changed_files | fromjson | .[] |= sub("(?<filepath>(?<first_directory>(?<root1>[\/]?)[^\/]+\/)(?<second_directory>(?<root2>[\/]?)[^\/]+\/)(?<third_directory>(?<root3>[\/]?)[^\/]+)(?<extra_paths>.+))"; "\(.third_directory)") | unique' changes.json)
|
||||
echo ::set-output name=apps::${APPS}
|
||||
if [ ${#APPS[@]} -eq 1 ]; then
|
||||
if [ ${#APPS[@]} -eq 1 ] || [ ${#APPS[@]} -eq 0 ]; then
|
||||
if [ -z "${APPS[0]}" ]; then
|
||||
echo "No Changed Apps"
|
||||
echo "::set-output name=empty_matrix::true"
|
||||
|
||||
Reference in New Issue
Block a user