Renovate and releaser improvements (#11)

* Update all files from release

* Pull in TeslaMate release notes
This commit is contained in:
Colin Seymour
2024-06-11 11:36:45 +01:00
committed by GitHub
parent f893e1ff3d
commit 4ab0062498
2 changed files with 15 additions and 3 deletions
+5 -2
View File
@@ -11,9 +11,12 @@
"customManagers": [
{
"customType": "regex",
"fileMatch": "^build\\.json$",
"fileMatch": ["^Dockerfile$", "^build.json$"],
"matchStringsStrategy": "any",
"matchStrings": [
"\"teslamate_version\": \"(?<currentValue>\\d+\\.\\d+\\.\\d+)\""
"\"teslamate_version\": \"(?<currentValue>\\d+\\.\\d+\\.\\d+)\"",
"FROM=teslamate/(grafana|teslamate):(?<currentValue>.*?)\\s+",
"(aarch64|amd64|armhf|armv7|i386):\\s[\"']?teslamate/teslamate:(?<currentValue>.*?)[\"']?\\s"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "teslamate-org/teslamate"
+9
View File
@@ -39,6 +39,15 @@ jobs:
git tag -a v${{ steps.semver.outputs.semver }} -m 'Release automation'
git push --tags
working-directory: ${{ github.workspace }}/teslamate
- name: Get TeslaMate release notes
run: |
gh pr list --repo lildude/ha-addon-teslamate --state=merged --search="Update TeslaMate" --limit=1 --json=body --jq '.[].body' | sed -n "/<\/summary>/,/<\/details>/p" | sed '1d;$d' > changelog.tmp
if [ -s changelog.tmp ]; then
echo "## TeslaMate Release Notes" > CHANGELOG.txt
cat changelog.tmp >> CHANGELOG.txt
echo "---" >> CHANGELOG.txt
fi
rm -f CHANGELOG.txt
- name: Create release
uses: softprops/action-gh-release@v2.0.5
with: