Skip to content

Commit

Permalink
Will now write Github tag version into Home Assistant add-on spec bef…
Browse files Browse the repository at this point in the history
…ore creating container
  • Loading branch information
tpanajott committed Jul 26, 2023
1 parent eab1ac7 commit c73fa71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/config.yaml
Original file line number Diff line number Diff line change
@@ -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]/
Expand Down

0 comments on commit c73fa71

Please sign in to comment.