File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -130,15 +130,16 @@ if [[ "$COMMENT_FOUND" = false ]]; then
130130 do
131131 # only do this for adoc files
132132 if [ " ${i: -5} " == " .adoc" ] ; then
133- # ignore adoc files which are modules or topics
133+ # ignore adoc files which are modules or topics as final urls are for assemblies
134134 if [[ ${i} != * " topic" * || ${i} != * " module" * ]] ; then
135135 FILE_NAME=" ${i::- 5} "
136- CHECK_DOCS_URL=" https://docs.openshift.com/container-platform/3.9/$FILE_NAME .html"
137- if curl --output /dev/null --silent --head --fail " $CHECK_DOCS_URL " ; then
138- FINAL_URL=" https://${PR_BRANCH} --ocpdocs.netlify.com/openshift-enterprise/latest/$FILE_NAME .html"
139- # COMMENT_DATA2="- *$i*: ${COMMENT_DATA2}${FINAL_URL}\\n"
140- echo " - *$i *: ${FINAL_URL} " >> comments.txt
141- fi
136+ # this check is not strictly necessary for new content, and of course, needs to be versioned.
137+ # CHECK_DOCS_URL="https://docs.openshift.com/container-platform/3.9/$FILE_NAME.html"
138+ # if curl --output /dev/null --silent --head --fail "$CHECK_DOCS_URL"; then
139+ FINAL_URL=" https://${PR_BRANCH} --ocpdocs.netlify.com/openshift-enterprise/latest/$FILE_NAME .html"
140+ # COMMENT_DATA2="- *$i*: ${COMMENT_DATA2}${FINAL_URL}\\n"
141+ echo " - *$i *: ${FINAL_URL} " >> comments.txt
142+ # fi
142143 fi
143144 fi
144145 done
You can’t perform that action at this time.
0 commit comments