Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hyperlinks and paths validation. #148

Closed
wants to merge 49 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
f562adf
Update .github/workflows/pr-path-detection.yml
ZePan110 Sep 19, 2024
3f231e4
Update .github/workflows/pr-path-detection.yml
ZePan110 Sep 19, 2024
2c2f2fa
Update .github/workflows/pr-path-detection.yml
ZePan110 Sep 19, 2024
1f9e9e4
Add hyperlinks and paths validation.
ZePan110 Sep 19, 2024
91f4be4
test
ZePan110 Sep 19, 2024
15c6aec
test
ZePan110 Sep 19, 2024
9af6b74
Set IFS to newlines only.
ZePan110 Sep 19, 2024
ef6b6d2
Fix path error.
ZePan110 Sep 19, 2024
fde2674
Excluded mailboxes.
ZePan110 Sep 19, 2024
5af3c37
Fix path error
ZePan110 Sep 19, 2024
1a013db
Exclude linkedin links and video link verification.
ZePan110 Sep 19, 2024
a44423d
Merge branch 'zepan/dev' of https://github.com/opea-project/docs into…
ZePan110 Sep 19, 2024
2d67789
Change output.
ZePan110 Sep 19, 2024
35d25a7
Remove test output
ZePan110 Sep 19, 2024
35974b7
Update .github/workflows/pr-path-detection.yml
ZePan110 Sep 19, 2024
88e10e0
Add status code output
ZePan110 Sep 20, 2024
e97876f
test.
ZePan110 Sep 20, 2024
c31e3ab
test
ZePan110 Sep 20, 2024
318ad60
Add retry for occasional failures
ZePan110 Sep 20, 2024
5b09558
Change output
ZePan110 Sep 20, 2024
7bfbdcf
Increase the number of retries
ZePan110 Sep 20, 2024
9d9959f
delay
ZePan110 Sep 20, 2024
7e2f164
Clean up code.
ZePan110 Sep 20, 2024
45d71e5
doc: fix link to deploy options in get started (#173)
dbkinder Sep 24, 2024
b5a32a0
doc: update doc guidelines and building content
dbkinder Sep 25, 2024
3cca01e
doc: remove test directory (#176)
dbkinder Sep 25, 2024
49438ef
Add hyperlinks and paths validation.
ZePan110 Sep 19, 2024
a2ee08c
test
ZePan110 Sep 19, 2024
6382f31
test
ZePan110 Sep 19, 2024
194ca18
Set IFS to newlines only.
ZePan110 Sep 19, 2024
8882703
Fix path error.
ZePan110 Sep 19, 2024
b7fc9dc
Excluded mailboxes.
ZePan110 Sep 19, 2024
d2c1d08
Fix path error
ZePan110 Sep 19, 2024
c6d3b35
Exclude linkedin links and video link verification.
ZePan110 Sep 19, 2024
8a464d6
Update .github/workflows/pr-path-detection.yml
ZePan110 Sep 19, 2024
b2d6ac0
Update .github/workflows/pr-path-detection.yml
ZePan110 Sep 19, 2024
3da3800
Update .github/workflows/pr-path-detection.yml
ZePan110 Sep 19, 2024
ecdcb52
Change output.
ZePan110 Sep 19, 2024
0b7fcbb
Remove test output
ZePan110 Sep 19, 2024
3c692ec
Update .github/workflows/pr-path-detection.yml
ZePan110 Sep 19, 2024
94daca0
Add status code output
ZePan110 Sep 20, 2024
ea54efc
test.
ZePan110 Sep 20, 2024
bf9632e
test
ZePan110 Sep 20, 2024
a341932
Add retry for occasional failures
ZePan110 Sep 20, 2024
45087c4
Change output
ZePan110 Sep 20, 2024
2965a14
Increase the number of retries
ZePan110 Sep 20, 2024
eda586d
delay
ZePan110 Sep 20, 2024
c9fd8d9
Clean up code.
ZePan110 Sep 20, 2024
c2c7404
Merge branch 'zepan/dev' of https://github.com/opea-project/docs into…
ZePan110 Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Increase the number of retries
Signed-off-by: ZePan110 <ze.pan@intel.com>
  • Loading branch information
ZePan110 committed Sep 20, 2024
commit 7bfbdcf2f91f9b2364cf61b81b38e99e4c00c209
25 changes: 21 additions & 4 deletions .github/workflows/pr-path-detection.yml
Original file line number Diff line number Diff line change
@@ -48,10 +48,27 @@ jobs:
for link in "${urls_line[@]}"; do
url=$(echo "$link"|cut -d '(' -f2 | cut -d ')' -f1|sed 's/\.git$//')
path=$(echo "$link"|cut -d':' -f1 | cut -d'/' -f2-)
do_retry=$(curl -s -o /dev/null -w "%{http_code}" "$url")
if [ "$do_retry" -eq 200 ]; then
echo "$url Retry successful"
else
# do_retry=$(curl -s -o /dev/null -w "%{http_code}" "$url")
# if [ "$do_retry" -eq 200 ]; then
# echo "$url Retry successful"
# else
# echo "Invalid link from ${{github.workspace}}/$path: $url status code: $do_retry"
# fail="TRUE"
# fi
attempt_num=1
while [ $attempt_num -le 5 ]; do
do_retry=$(curl -s -o /dev/null -w "%{http_code}" "$url")
if [ "$do_retry" -eq 200 ]; then
echo "$url Retry successful"
break
else
echo "$url Validation failed, retrying..."
((attempt_num++))
sleep 3
fi
done

if [ $attempt_num -gt 5 ]; then
echo "Invalid link from ${{github.workspace}}/$path: $url status code: $do_retry"
fail="TRUE"
fi
Loading