This repository was archived by the owner on Jan 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,15 @@ pipeline {
199199 else
200200 echo "false" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
201201 fi
202+ mkdir -p ${TEMPDIR}/gitbook
203+ git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
204+ if [ "${BRANCH_NAME}" = "master" ] && [ ! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md ] || [ "$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" ]; then
205+ cp ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
206+ cd ${TEMPDIR}/gitbook/docker-documentation/
207+ git add images/docker-${CONTAINER_NAME}.md
208+ git commit -m 'Bot Updating Templated Files'
209+ git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git --all
210+ fi
202211 rm -Rf ${TEMPDIR}'''
203212 script{
204213 env. FILES_UPDATED = sh(
You can’t perform that action at this time.
0 commit comments