Skip to content

Commit 9bd7883

Browse files
Bot Updating Templated Files
1 parent dfda009 commit 9bd7883

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
@@ -284,7 +284,7 @@ pipeline {
284284
echo "Jenkinsfile is up to date."
285285
fi
286286
# Stage 2 - Delete old templates
287-
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"
287+
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"
288288
for i in ${OLD_TEMPLATES}; do
289289
if [[ -f "${i}" ]]; then
290290
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -320,12 +320,13 @@ pipeline {
320320
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
321321
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
322322
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :
323+
cp --parents readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/ || :
323324
cd ${TEMPDIR}/repo/${LS_REPO}/
324325
if ! grep -q '.jenkins-external' .gitignore 2>/dev/null; then
325326
echo ".jenkins-external" >> .gitignore
326327
git add .gitignore
327328
fi
328-
git add ${TEMPLATED_FILES}
329+
git add readme-vars.yml ${TEMPLATED_FILES}
329330
git commit -m 'Bot Updating Templated Files'
330331
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
331332
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}

0 commit comments

Comments
 (0)