Skip to content

Commit 82e7c0d

Browse files
committed
debug
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent 99e541d commit 82e7c0d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/pr-link-path-scan.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
- name: Checking Relative Path Validity
7575
run: |
7676
cd ${{github.workspace}}
77+
delay=15
7778
fail="FALSE"
7879
repo_name=${{ github.event.pull_request.head.repo.full_name }}
7980
branch="https://github.com/$repo_name/blob/${{ github.event.pull_request.head.ref }}"
@@ -105,14 +106,15 @@ jobs:
105106
if [[ "$png_line" == *#* ]]; then
106107
if [ -n "changed_files" ] && echo "$changed_files" | grep -q "^${refer_path}$"; then
107108
url_dev=$branch$(echo "$real_path" | sed 's|.*/GenAIExamples||')$png_path
109+
sleep $delay
108110
response=$(curl -I -L -s -o /dev/null -w "%{http_code}" "$url_dev")
109111
if [ "$response" -ne 200 ]; then
110-
echo "**********Validation failed, try again**********"
112+
echo "**********Validation failed ($response), try again**********"
111113
response_retry=$(curl -s -o /dev/null -w "%{http_code}" "$url_dev")
112114
if [ "$response_retry" -eq 200 ]; then
113115
echo "*****Retry successfully*****"
114116
else
115-
echo "Invalid path from ${{github.workspace}}/$refer_path: $png_path"
117+
echo "Invalid path ($response_retry) from ${{github.workspace}}/$refer_path: $png_path"
116118
fail="TRUE"
117119
fi
118120
else

0 commit comments

Comments
 (0)