From ead424a291b72d7506f74a64fabbb64301d1df45 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Sun, 9 May 2021 18:50:24 +0200 Subject: [PATCH] catch both possible empty list types --- .github/workflows/apps.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/apps.yaml b/.github/workflows/apps.yaml index 700e8440ef4..bd4cbd9b609 100644 --- a/.github/workflows/apps.yaml +++ b/.github/workflows/apps.yaml @@ -51,7 +51,7 @@ jobs: run: | APPS=$(jq --raw-output '.changed_files | fromjson | .[] |= sub("(?(?(?[\/]?)[^\/]+\/)(?(?[\/]?)[^\/]+\/)(?(?[\/]?)[^\/]+)(?.+))"; "\(.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"