File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments