Skip to content

Commit

Permalink
escape periods
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Feb 12, 2024
1 parent b2f3f2d commit 4192008
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/actions/feature-matrix/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ files="${@}";
features="";
scenarios="";

if [ "${full_matrix}" == "1" ] || echo "$files" | grep -q ".github/"; then
if [ "${full_matrix}" == "1" ] || grep -q ".github/" <<< "$files"; then
features="$(find_features_with_tests 'test.sh' 'features/test')";
scenarios="$(find_features_with_tests 'scenarios.json' 'features/test')";
elif echo "$files" | grep -q "features/"; then
Expand Down
24 changes: 12 additions & 12 deletions .github/actions/image-matrix/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ features="$(echo \
|| echo '' \
)";

if `# Include all images if full_matrix is true` \
[ "${full_matrix}" == "1" ] \
`# Include all images if matrix or workflows changed` \
|| grep -q 'matrix.yml' <<< "${files}" \
|| grep -q '.github/workflows/test.yml' <<< "${files}" \
|| grep -q '.github/actions/build-linux-image/action.yml' <<< "${files}" \
|| grep -q '.github/actions/image-matrix/action.sh' <<< "${files}" \
|| grep -q '.github/actions/image-matrix/action.yml' <<< "${files}" \
|| grep -q '.github/workflows/build-and-test-image.yml' <<< "${files}" \
`# Include all images if cmake, ninja, sccache, ` \
`# gitlab-cli, or utils features changed` \
|| grep -qE "(${common_features})" <<< "${features}" \
if `# Include all images if full_matrix is true` \
[ "${full_matrix}" == "1" ] \
`# Include all images if matrix or workflows changed` \
|| grep -q 'matrix\.yml' <<< "${files}" \
|| grep -q '\.github/workflows/test\.yml' <<< "${files}" \
|| grep -q '\.github/actions/build-linux-image/action\.yml' <<< "${files}" \
|| grep -q '\.github/actions/image-matrix/action\.sh' <<< "${files}" \
|| grep -q '\.github/actions/image-matrix/action\.yml' <<< "${files}" \
|| grep -q '\.github/workflows/build-and-test-image\.yml' <<< "${files}" \
`# Include all images if cmake, ninja, sccache, ` \
`# gitlab-cli, or utils features changed` \
|| grep -qE "(${common_features})" <<< "${features}" \
; then
features="$( \
find features/src -mindepth 1 -maxdepth 1 -type d -print0 \
Expand Down

0 comments on commit 4192008

Please sign in to comment.