mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 13:10:30 -04:00
Consolidate versions and Renovate config to a single file (#48)
* Consolidate versions and renovate config to a single file * Remove unneeded lint check * Add BUILD_FROM
This commit is contained in:
@@ -8,12 +8,13 @@
|
||||
"prBodyTemplate": "{{{table}}}{{{warnings}}}{{{notes}}}{{{changelogs}}}",
|
||||
"semanticCommits": "disabled",
|
||||
"commitMessageTopic": "{{#if (containsString depName 'teslamate')}}TeslaMate{{else}}{{depName}}{{/if}}",
|
||||
"enabledManagers": ["custom.regex", "github-actions", "dockerfile"],
|
||||
"enabledManagers": ["custom.regex", "github-actions"],
|
||||
"customManagers": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"fileMatch": "^build.json$",
|
||||
"matchStrings": [
|
||||
"\"teslamate/teslamate:(?<currentValue>\\d+\\.\\d+\\.\\d+)\"",
|
||||
"\"teslamate_version\": \"(?<currentValue>\\d+\\.\\d+\\.\\d+)\""
|
||||
],
|
||||
"datasourceTemplate": "github-releases",
|
||||
|
||||
@@ -20,13 +20,3 @@ jobs:
|
||||
uses: frenck/action-addon-linter@v2
|
||||
with:
|
||||
path: "./"
|
||||
|
||||
- name: Check versions match
|
||||
run: |
|
||||
docker_ver=$(grep "FROM teslamate/teslamate" Dockerfile | cut -d':' -f2)
|
||||
build_ver=$(jq -r ".args.teslamate_version" build.json)
|
||||
if [ "$docker_ver" != "$build_ver" ]; then
|
||||
echo -e "\033[31;1mTeslaMate versions don't match: Dockerfile => ${docker_ver} | build.json => ${build_ver}\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
echo -e "\033[32;1mTeslaMate versions match: Dockerfile => ${docker_ver} | build.json => ${build_ver}\033[0m"
|
||||
|
||||
Reference in New Issue
Block a user