KISS version
This commit is contained in:
parent
ead424a291
commit
363c6b2655
|
@ -51,7 +51,6 @@ jobs:
|
||||||
run: |
|
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)
|
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}
|
echo ::set-output name=apps::${APPS}
|
||||||
if [ ${#APPS[@]} -eq 1 ] || [ ${#APPS[@]} -eq 0 ]; then
|
|
||||||
if [ -z "${APPS[0]}" ]; then
|
if [ -z "${APPS[0]}" ]; then
|
||||||
echo "No Changed Apps"
|
echo "No Changed Apps"
|
||||||
echo "::set-output name=empty_matrix::true"
|
echo "::set-output name=empty_matrix::true"
|
||||||
|
@ -59,10 +58,6 @@ jobs:
|
||||||
echo "Changed Apps: ${APPS[*]}"
|
echo "Changed Apps: ${APPS[*]}"
|
||||||
echo "::set-output name=empty_matrix::false"
|
echo "::set-output name=empty_matrix::false"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo "Changed Apps: ${APPS[*]}"
|
|
||||||
echo "::set-output name=empty_matrix::false"
|
|
||||||
fi
|
|
||||||
|
|
||||||
app-tests:
|
app-tests:
|
||||||
needs: [changes]
|
needs: [changes]
|
||||||
|
|
Loading…
Reference in New Issue