diff --git a/.github/workflows/test-suite.yaml b/.github/workflows/test-suite.yaml index 18712e8204..e8c91c6434 100644 --- a/.github/workflows/test-suite.yaml +++ b/.github/workflows/test-suite.yaml @@ -1,11 +1,6 @@ name: Test Suite on: - pull_request: - types: - - opened - branches-ignore: - - master issue_comment: types: - created diff --git a/.github/workflows/trigger-cypress.yaml b/.github/workflows/trigger-cypress.yaml index ac161fd192..7d2d19a964 100644 --- a/.github/workflows/trigger-cypress.yaml +++ b/.github/workflows/trigger-cypress.yaml @@ -18,9 +18,11 @@ jobs: if [[ "$comment_body" =~ TEST:(.*?)end ]]; then specs="${BASH_REMATCH[1]}" echo "Specs to test: $specs" - # Split the content by spaces - IFS=' ' read -ra content_array <<< "$specs" - content_array=("${content_array[@]/ /}") # Remove spaces + # Split the content by commas and remove spaces + IFS=',' read -ra content_array <<< "$specs" + content_array=("${content_array[@]// /}") # Remove spaces from all elements + # Remove leading and trailing slashes from each element + content_array=("${content_array[@]//\//}") # Prefix the elements with "cypress/e2e/" content_array=("cypress/e2e/${content_array[@]}") # Join the content array elements with commas