mirror of
https://github.com/linuxserver/docker-audacity.git
synced 2025-12-14 05:25:31 +01:00
Bot Updating Templated Files
This commit is contained in:
parent
04e2e84883
commit
f02d0e3dff
1 changed files with 20 additions and 19 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
|
@ -999,8 +999,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
|
||||||
|
|
@ -1008,16 +1009,15 @@ pipeline {
|
||||||
-d '{"tag_name":"'${META_TAG}'",\
|
-d '{"tag_name":"'${META_TAG}'",\
|
||||||
"target_commitish": "main"}' \
|
"target_commitish": "main"}' \
|
||||||
| 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 main",\
|
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to main",\
|
||||||
"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 to ${EXT_RELEASE_CLEAN}" > releasebody.json
|
echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json
|
||||||
jq -n \
|
jq -n \
|
||||||
--arg tag_name "$META_TAG" \
|
--arg tag_name "$META_TAG" \
|
||||||
|
|
@ -1032,7 +1032,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": false }' > releasebody.json.done
|
"prerelease": false }' > 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…
Add table
Add a link
Reference in a new issue