Skip to content

Commit

Permalink
Corrected caching problem
Browse files Browse the repository at this point in the history
Signed-off-by: Charan-Sharan <[email protected]>
  • Loading branch information
Charan-Sharan committed Jun 20, 2024
1 parent a0bd324 commit 24fe28f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-hyperlinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ jobs:
do
status_code=$(curl -LI -m 60 -s $link | grep "HTTP" | tail -1 | cut -d' ' -f2 )
if [[ -n $status_code ]]; then
echo "$link~$status_code" >> checkedlinksCache.txt
break
else
echo $line
echo "retrying..."
try=$(( try - 1))
fi
done
echo "$link~$status_code" >> checkedlinksCache.txt
else
status_code=$( cat checkedLinksCache.txt | grep "$link~" | cut -d '~' -f2 )
fi
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
/home/runner/work/HPCC-Platform/HPCC-Platform/hyperlinks-testing.log
/home/runner/work/HPCC-Platform/HPCC-Platform/*FilesList.txt
/home/runner/work/HPCC-Platform/HPCC-Platform/checkedLinksCache.txt
/home/runner/work/HPCC-Platform/HPCC-Platform/Links.txt
/home/runner/work/HPCC-Platform/HPCC-Platform/*Links.txt
/home/runner/work/HPCC-Platform/HPCC-Platform/links_list.txt
/home/runner/work/HPCC-Platform/HPCC-Platform/changed_files.txt
/home/runner/work/HPCC-Platform/HPCC-Platform/rejected_links.txt
Expand Down

0 comments on commit 24fe28f

Please sign in to comment.