diff --git a/.github/workflows/test-hyperlinks.yml b/.github/workflows/test-hyperlinks.yml index 286c75b8ccf..13301747c3b 100644 --- a/.github/workflows/test-hyperlinks.yml +++ b/.github/workflows/test-hyperlinks.yml @@ -152,6 +152,7 @@ jobs: fi fi done + - name: report Error links run: | Number_of_404_links=$( cat error-report.log | wc -l ) @@ -170,16 +171,16 @@ jobs: baseDir=${PWD/$(basename $PWD)} baseDir=$(echo $baseDir | sed 's/\//\\\//g') sed -i "s/${baseDir}//g" error-report.log - fileNames=$(cat Temp/BrokenLinks.txt | cut -d ':' -f1 | sort | uniq ) + fileNames=$(cat error-report.log | cut -d ':' -f1 | sort | uniq ) fileCount=1 for line in $fileNames do - rawLines=$( cat Temp/BrokenLinks.txt | grep $line | cut -d ':' -f2- ) - echo "$fileCount. $line" >> Broken-links.log + rawLines=$( cat error-report.log | grep $line | cut -d ':' -f2- ) + echo "$fileCount. $line" >> error-report.log fileCount=$(( fileCount + 1)) for rawLine in $rawLines do - echo -e "\t Line $rawLine" | sed 's/:/ : /' >> Broken-links.log + echo -e "\t Line $rawLine" | sed 's/:/ : /' >> error-report.log done done