mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-11-07 22:49:59 +01:00
Bot Updating Templated Files
This commit is contained in:
parent
c7c14c2830
commit
13b8a7d788
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -934,8 +934,9 @@ pipeline {
|
|||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
sh '''#! /bin/bash
|
||||||
echo "Auto-generating release notes"
|
echo "Auto-generating release notes"
|
||||||
sh '''if [ "$(git tag --points-at HEAD)" != "" ]; then
|
if [ "$(git tag --points-at HEAD)" != "" ]; then
|
||||||
echo "Existing tag points to current commit, suggesting no new LS changes"
|
echo "Existing tag points to current commit, suggesting no new LS changes"
|
||||||
AUTO_RELEASE_NOTES="No changes"
|
AUTO_RELEASE_NOTES="No changes"
|
||||||
else
|
else
|
||||||
@ -943,16 +944,15 @@ pipeline {
|
|||||||
-d '{"tag_name":"'${META_TAG}'",\
|
-d '{"tag_name":"'${META_TAG}'",\
|
||||||
"target_commitish": "debian-kde"}' \
|
"target_commitish": "debian-kde"}' \
|
||||||
| jq -r '.body' | sed 's|## What.s Changed||')
|
| jq -r '.body' | sed 's|## What.s Changed||')
|
||||||
fi'''
|
fi
|
||||||
echo "Pushing New tag for current commit ${META_TAG}"
|
echo "Pushing New tag for current commit ${META_TAG}"
|
||||||
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
|
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
|
||||||
-d '{"tag":"'${META_TAG}'",\
|
-d '{"tag":"'${META_TAG}'",\
|
||||||
"object": "'${COMMIT_SHA}'",\
|
"object": "'${COMMIT_SHA}'",\
|
||||||
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to debian-kde",\
|
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to debian-kde",\
|
||||||
"type": "commit",\
|
"type": "commit",\
|
||||||
"tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
"tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}'
|
||||||
echo "Pushing New release for Tag"
|
echo "Pushing New release for Tag"
|
||||||
sh '''#! /bin/bash
|
|
||||||
echo "Updating base packages to ${PACKAGE_TAG}" > releasebody.json
|
echo "Updating base packages to ${PACKAGE_TAG}" > releasebody.json
|
||||||
jq -n \
|
jq -n \
|
||||||
--arg tag_name "$META_TAG" \
|
--arg tag_name "$META_TAG" \
|
||||||
@ -967,7 +967,8 @@ pipeline {
|
|||||||
"body": ("**CI Report:**\\n\\n" + $ci_url + "\\n\\n**LinuxServer Changes:**\\n\\n" + $ls_notes + "\\n\\n**Remote Changes:**\\n\\n" + $remote_notes),
|
"body": ("**CI Report:**\\n\\n" + $ci_url + "\\n\\n**LinuxServer Changes:**\\n\\n" + $ls_notes + "\\n\\n**Remote Changes:**\\n\\n" + $remote_notes),
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"prerelease": true }' > releasebody.json.done
|
"prerelease": true }' > releasebody.json.done
|
||||||
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
|
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Add protection to the release branch
|
// Add protection to the release branch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user