update doc branch-2.4 (#9430) #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check download URL in docs/readthedocs/source/doc/Orca/Overview/install.md | |
on: | |
push: | |
paths: 'docs/readthedocs/source/doc/Orca/Overview/install.md' | |
pull_request: | |
paths: 'docs/readthedocs/source/doc/Orca/Overview/install.md' | |
jobs: | |
checkDownloadURL: | |
runs-on: [self-hosted, Gondolin, ubuntu-20.04-lts] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run a url check script | |
run: | | |
url_list=$(grep -wio "https://oss[0-9_a-zA-Z\/.\-]*" docs/readthedocs/source/doc/Orca/Overview/install.md) | |
for line in $url_list | |
do | |
wget --spider -T 5 -q -t 2 $line | |
res=$? | |
if [ $res -ne 0 ]; | |
then | |
echo "URL:$line ERROR!" | |
exit | |
fi | |
done | |
echo "all url is valids" |