File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ pipeline {
9696 steps{
9797 script{
9898 env. EXT_RELEASE = sh(
99- script : ''' curl -s https://download.nextcloud.com/server/installer/setup-nextcloud.php | awk -F \\ ' '/NC_VERSION/{print $4;exit}'
99+ script : ''' curl -s https://download.nextcloud.com/server/installer/setup-nextcloud.php | awk -F \' '/NC_VERSION/{print $4;exit}'
100100 ''' ,
101101 returnStdout : true ). trim()
102102 env. RELEASE_LINK = ' custom_command'
@@ -200,6 +200,15 @@ pipeline {
200200 else
201201 echo "false" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
202202 fi
203+ mkdir -p ${TEMPDIR}/gitbook
204+ git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
205+ 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
206+ cp ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
207+ cd ${TEMPDIR}/gitbook/docker-documentation/
208+ git add images/docker-${CONTAINER_NAME}.md
209+ git commit -m 'Bot Updating Templated Files'
210+ git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git --all
211+ fi
203212 rm -Rf ${TEMPDIR}'''
204213 script{
205214 env. FILES_UPDATED = sh(
You can’t perform that action at this time.
0 commit comments