diff --git a/.github/workflows/pr-path-detection.yml b/.github/workflows/pr-path-detection.yml index cf640cb147..3a1c6b0e74 100644 --- a/.github/workflows/pr-path-detection.yml +++ b/.github/workflows/pr-path-detection.yml @@ -61,11 +61,11 @@ jobs: changed_files="$(git diff --name-status --diff-filter=ARM ${{ github.event.pull_request.base.sha }} ${merged_commit} | awk '/\.md$/ {print $NF}')" if [ -n "$changed_files" ]; then for changed_file in $changed_files; do - echo $changed_file + # echo $changed_file url_lines=$(grep -H -Eo '\]\(http[s]?://[^)]+\)' "$changed_file" | grep -Ev 'GenAIExamples/blob/main') || true if [ -n "$url_lines" ]; then for url_line in $url_lines; do - echo $url_line + # echo $url_line url=$(echo "$url_line"|cut -d '(' -f2 | cut -d ')' -f1|sed 's/\.git$//') path=$(echo "$url_line"|cut -d':' -f1 | cut -d'/' -f2-) response=$(curl -L -s -o /dev/null -w "%{http_code}" "$url")