From c73fa71767f4268a1765c4f8a93c9a641e6f99b0 Mon Sep 17 00:00:00 2001 From: Tim Panajott Date: Wed, 26 Jul 2023 15:03:03 +0200 Subject: [PATCH] Will now write Github tag version into Home Assistant add-on spec before creating container --- .github/workflows/docker-publish.yml | 10 ++++++++++ docker/config.yaml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a901760b..e4f80adc 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -5,6 +5,16 @@ on: types: [published] jobs: + write-version: + runs-on: ubuntu-latest + name: Update Home Assistant add-on version + steps: + - uses: actions/checkout@master + - name: Update version + uses: brettdorrans/write-version-to-file@master + with: + filename: "/docker/config.yaml" + placeholder: "${VERSION}" publish: name: Publish runs-on: ubuntu-latest diff --git a/docker/config.yaml b/docker/config.yaml index 04c8c8e1..6f2fb4a5 100644 --- a/docker/config.yaml +++ b/docker/config.yaml @@ -1,6 +1,6 @@ name: "NSPanel Manager" description: "Container for Sonoff NSPanel management with a simple and intuitive UI" -version: "0.0.28" +version: "${VERSION}" slug: "nspanelmanager" url: "https://nspanelmanager.com" webui: http://[HOST]:[PORT:8000]/