Skip to content

Commit 36c8b0e

Browse files
Bot Updating Templated Files
1 parent ab18a9b commit 36c8b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ pipeline {
337337
fi
338338
if [ "$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )" != "${PACKAGE_TAG}" ]; then
339339
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
340+
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master
340341
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
341342
cd ${TEMPDIR}/${LS_REPO}/
342-
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master
343343
git --git-dir ${TEMPDIR}/${LS_REPO}/.git add package_versions.txt
344344
git --git-dir ${TEMPDIR}/${LS_REPO}/.git commit -m 'Bot Updating Package Versions'
345345
git --git-dir ${TEMPDIR}/${LS_REPO}/.git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all

0 commit comments

Comments
 (0)