Skip to content

Commit 3fcefd4

Browse files
Bot Updating Templated Files
1 parent 7129810 commit 3fcefd4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Jenkinsfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pipeline {
281281
echo "Jenkinsfile is up to date."
282282
fi
283283
# Stage 2 - Delete old templates
284-
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"
284+
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"
285285
for i in ${OLD_TEMPLATES}; do
286286
if [[ -f "${i}" ]]; then
287287
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -317,12 +317,13 @@ pipeline {
317317
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
318318
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
319319
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :
320+
cp --parents readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/ || :
320321
cd ${TEMPDIR}/repo/${LS_REPO}/
321322
if ! grep -q '.jenkins-external' .gitignore 2>/dev/null; then
322323
echo ".jenkins-external" >> .gitignore
323324
git add .gitignore
324325
fi
325-
git add ${TEMPLATED_FILES}
326+
git add readme-vars.yml ${TEMPLATED_FILES}
326327
git commit -m 'Bot Updating Templated Files'
327328
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
328329
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}

0 commit comments

Comments
 (0)