Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hpcc-systems/HPCC-Platform
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5ba919bc787f0ab8460bc958cfe37d5414a5d268
Choose a base ref
..
head repository: hpcc-systems/HPCC-Platform
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bf6a3c8d20adb2d6e796920c885ed698747adc76
Choose a head ref
Showing with 16 additions and 5 deletions.
  1. +16 −5 .github/workflows/test-hyperlinks.md
21 changes: 16 additions & 5 deletions .github/workflows/test-hyperlinks.md
Original file line number Diff line number Diff line change
@@ -75,6 +75,7 @@ Note:
- name: List links from Documentation files
run: |
IFS=$'\n'
touch missingFiles.txt
for FILE in $( cat xmlFilesList.txt )
do
#check if the file is missing
@@ -108,7 +109,7 @@ Note:
echo $FILE >> missingFiles.txt
continue
fi
grep -onHE -e "\]\([^\)]+" -e "\`\`\`[^\`]*" -e "http://[^\ \;\"\'\<\>\]\[\,\`\)]+" -e "https://[^\ \;\"\'\<\>\]\[\,\`\)]+" ${FILE} | sed 's/](//' > links.tmp
grep -onHE -e "\]\([^\)]+" -e "\`\`\`[^\`]*" -e "http://[^\ \;\"\'\<\>\,\`\)]+" -e "https://[^\ \;\"\'\<\>\,\`\)]+" ${FILE} | sed 's/](//' > links.tmp
FLAG=0
for LINE in $( cat links.tmp )
do
@@ -259,16 +260,26 @@ The log file that is generated is beautified and is made more readable. The path
echo -e "Broken links: \n" > error-report.log
cat error-reportTmp.log >> error-report.log
else
echo -e "Missing Files: \n" > error-report.log
cat missingFiles.txt >> error-report.log
echo -e "Broken links: \n" >> error-report.log
echo -e "Missing Files:" > error-report.log
FILE_COUNT=1
for FILE in $( cat missingFiles.txt )
do
echo -e "${FILE_COUNT}. ${FILE}" >> error-report.log
FILE_COUNT=$(( FILE_COUNT + 1 ))
done
echo -e "\nBroken links: \n" >> error-report.log
cat error-reportTmp.log >> error-report.log
fi
if [ -z ${{ inputs.Debug-Mode }} ]; then
DEBUG_MODE=false
else
DEBUG_MODE=${{ inputs.Debug-Mode }}
fi
if [[ ${{ github.event_name }} == "pull_request" || ${{ inputs.Debug-Mode }} == false ]]; then
rm -rf *FilesList.txt \
checkedLinksCache.txt \
*Links.txt \
linksList.txt \
linksList.txt
fi
```
### Upload logs