Skip to content

Commit d596925

Browse files
Remove conditional url check
1 parent a7dba3f commit d596925

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

scripts/push_to_netlify.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)