Skip to content

Commit 68a4c37

Browse files
Bot Updating Templated Files
1 parent ab3a4e0 commit 68a4c37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Jenkinsfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ pipeline {
278278
echo "Jenkinsfile is up to date."
279279
fi
280280
# Stage 2 - Delete old templates
281-
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml"
281+
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml Dockerfile.armhf"
282282
for i in ${OLD_TEMPLATES}; do
283283
if [[ -f "${i}" ]]; then
284284
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -314,12 +314,13 @@ pipeline {
314314
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
315315
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
316316
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :
317+
cp --parents readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/ || :
317318
cd ${TEMPDIR}/repo/${LS_REPO}/
318319
if ! grep -q '.jenkins-external' .gitignore 2>/dev/null; then
319320
echo ".jenkins-external" >> .gitignore
320321
git add .gitignore
321322
fi
322-
git add ${TEMPLATED_FILES}
323+
git add readme-vars.yml ${TEMPLATED_FILES}
323324
git commit -m 'Bot Updating Templated Files'
324325
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
325326
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}

0 commit comments

Comments
 (0)