diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1316f650..d60f47186 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,8 +31,7 @@ jobs: modifiedChartPaths=$(echo ${modifiedPaths} | xargs dirname | grep "^charts/" | cut -d "/" -f1-2 | sort --unique) # Test all charts if this workflow has been modified - modifiedWorkflow="" - modifiedWorkflow=$(echo ${modifiedPaths} | xargs echo | grep "^.github/workflows/test2.yml") + modifiedWorkflow=$(echo ${modifiedPaths} | grep "^.github/workflows/test2.yml" || echo "") if [ -n "${modifiedWorkflow}" ]; then modifiedChartPaths=$allChartsPaths echo "= workflow modified, including all charts"