Skip to content

Commit

Permalink
added release workflow
Browse files Browse the repository at this point in the history
fix custom cards
  • Loading branch information
caiosweet committed Jun 20, 2023
1 parent aac6cb0 commit 58b8b01
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 18 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Workflow

on:
release:
types: [published]

jobs:
zip-files:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v3

- name: 🔢 Get release version
id: get_version
uses: mikefarah/yq@master
with:
cmd: yq '.homeassistant.customize."package.cn".version' packages/centro_notifiche/hub_main.yaml

- name: 📦 Create zip file for the packages blueprints lovelace folder
uses: vimtor/action-zip@v1
with:
files: packages/ blueprints/ lovelace/
dest: centro_notifiche.zip
recursive: false

- name: 📤 Upload the zip file as a release asset and 🖊️ Set version number
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "${{ github.workspace }}/centro_notifiche.zip"
asset_name: centro_notifiche.zip
# default # tag: ${{ github.ref }}
tag: ${{ steps.get_version.outputs.result }}
prerelease: true
make_latest: false
overwrite: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ___
<img src="./assets/images/CN_card_my_menu_custom.png" width="500">
<br><br>

### Custom cards used for this menu above:
### My custom menu, contains all in one, but use these custom cards:

[Hass Browser mod](https://github.com/thomasloven/hass-browser_mod),
[Lovelace card mod](https://github.com/thomasloven/lovelace-card-mod),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
blueprint:
name: Centro Notifiche - Configurazione Avvio
description: >
`v5.0.12`
Blueprint per la configurazione del [Package Centro Notifiche](https://api.github.com/repos/caiosweet/Package-Notification-HUB-AppDaemon/releases/latest)
per Appdaemon [Notifier Center](https://github.com/jumping2000/notifier) 🔔 -
Authors [Caio](https://github.com/caiosweet), [Gianpi](https://github.com/jumping2000) by [Site hassiohelp](https://hassiohelp.eu/)
Date Started 01/11/2019 - Updated 20/05/2023
Date Started 01/11/2019 - Updated 18/06/2023
Guida di riferimento per l'utilizzo del Progetto Centro Notifiche, ed altre informazioni le trovi sul [wiki](https://github.com/caiosweet/Package-Notification-HUB-AppDaemon/wiki)
domain: automation
author: https://github.com/caiosweet
homeassistant:
min_version: 2023.6.0
input:
packages_folder:
name: Package folder
Expand Down Expand Up @@ -276,7 +280,8 @@ blueprint:
download:
name: Download
description: |-
Scarica automaticamente le nuove versioni del pacchetto da Github.
Permette di scaricare i file, della versione più recente del package, al riavvio dell'app Notifier.
I file saranno salvati nella cartella centro_notifiche nella directory dei packages.
_Download the new stable version of the package from Github._
default: off
Expand Down Expand Up @@ -310,6 +315,8 @@ mode: parallel
# mode: queued
max: 50
max_exceeded: silent
trace:
stored_traces: 10

trigger_variables:
time_pattern_hours: !input time_pattern_hours
Expand Down
8 changes: 4 additions & 4 deletions lovelace/card_menu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ card:
</ha-alert>
{% endif %}
- square: true
type: grid
- type: grid
square: true
columns: 8
cards:
- type: button
Expand Down Expand Up @@ -64,8 +64,8 @@ card:
show_icon: true
show_name: false
show_state: false
- square: false
type: grid
- type: grid
square: false
columns: 5
cards:
- type: button
Expand Down
50 changes: 41 additions & 9 deletions lovelace/card_my_menu_custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ cards:
styles:
button:
color: >
{{ iif(is_state(config.entity, 'off'), 'var(--error-color)', 'var(--state-active-color)') }}
{{ iif(is_state(config.entity, 'off'), 'var(--error-color)',
'var(--state-active-color)') }}
hold_action:
action: more-info
tap_action:
Expand Down Expand Up @@ -101,13 +102,19 @@ cards:
entity: sensor.notifier_debug_error
name: Restart App
tap_action:
action: call-service
confirmation:
text: Sei sicuro di voler riavviare l'App Notifier?
service: script.my_notify
service_data:
ad:
command: restart
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
content: |
Sei sicuro di voler riavviare l'App Notifier?
right_button: SI
left_button: 'NO'
right_button_action:
service: script.my_notify
data:
ad:
command: restart
- type: divider
style:
background-color: var(--primary-color)
Expand Down Expand Up @@ -414,7 +421,7 @@ cards:
- type: custom:paper-buttons-row
styles:
display: grid
grid-template-columns: 1fr 1fr 2fr
grid-template-columns: repeat(4, 1fr)
font-size: 0.9em
buttons:
- entity: input_boolean.notifier_phone_notifications
Expand All @@ -434,6 +441,31 @@ cards:
styles:
button:
color: var(--primary-text-color)
- entity: input_button.notifier_reset_config
layout: icon|name
name: Reset
styles:
button:
color: var(--error-color)
tap_action:
action: toggle
confirmation:
text: Procedo al reset della configurazione?
- type: button
layout: icon|name
name: Restart
icon: mdi:restart
styles:
button:
color: var(--error-color)
tap_action:
action: call-service
confirmation:
text: Sei sicuro di voler riavviare l'App Notifier?
service: script.my_notify
service_data:
ad:
command: restart
- type: divider
style:
background-color: var(--primary-color)
Expand Down
4 changes: 2 additions & 2 deletions packages/centro_notifiche/hub_main.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
homeassistant:
customize:
package.cn:
version: "5.0.12"
version: "5.0.13"
date: 📅 01/11/2019 - Updated 11/06/2023
info: https://github.com/caiosweet/Package-Notification-HUB-AppDaemon/wiki
links:
notifier: https://github.com/jumping2000/notifier
package: https://github.com/caiosweet/Package-Notification-HUB-AppDaemon
web: https://hassiohelp.eu/
extra_attributes: &extra_attributes
package: "Centro Notifiche 🔔 5.0.12"
package: "Centro Notifiche 🔔 5.0.13"
authors: "Caio & Gianpi"

#######################################-#######################################
Expand Down

0 comments on commit 58b8b01

Please sign in to comment.