From 7ab77cbd5f1d97c73bc53b17faaba160c8018044 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo <2160436+CCOSTAN@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:17:02 -0500 Subject: [PATCH 01/10] Update README.md Trying to use a new HA tag --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e293742..a762b9da 100755 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ [![X Follow](https://img.shields.io/twitter/follow/ccostan?color=blue&label=talk&logo=twitter&style=for-the-badge)](https://x.com/ccostan) [![YouTube Subscribe](https://img.shields.io/youtube/channel/subscribers/UC301G8JJFzY0BZ_0lshpKpQ?label=VIEW&logo=Youtube&logoColor=%23DF5D44&style=for-the-badge)](https://www.youtube.com/vCloudInfo?sub_confirmation=1) -[![GitHub Follow](https://img.shields.io/github/stars/CCOSTAN/Home-AssistantConfig?label=sTARS&logo=Github&style=for-the-badge)](https://github.com/CCOSTAN) +[![GitHub Follow](https://img.shields.io/github/stars/CCOSTAN/Home-AssistantConfig?label=sTARS&logo=Github&style=for-the-badge)](https://github.com/CCOSTAN)
+[![My HA Version](https://img.shields.io/github/v/tag/ccostan/home-assistantconfig?color=d42a1e&label=My%20HA%20Version&logo=homeassistant&logoColor=white&?cacheSeconds=600)](https://github.com/ccostan/home-assistantconfig/blob/master/config/.HA_VERSION)

From c1057f8499bfe0f7c8616116513d315c6110e7ba Mon Sep 17 00:00:00 2001 From: Carlo Costanzo <2160436+CCOSTAN@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:27:35 -0500 Subject: [PATCH 02/10] Create update-badge.yml --- .github/workflows/update-badge.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/update-badge.yml diff --git a/.github/workflows/update-badge.yml b/.github/workflows/update-badge.yml new file mode 100644 index 00000000..7a266546 --- /dev/null +++ b/.github/workflows/update-badge.yml @@ -0,0 +1,40 @@ +name: Update HA Version Badge + +on: + push: + branches: [ "master" ] # If your default branch is "master", change this + schedule: + - cron: '0 0 * * *' # Runs daily at midnight UTC + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: 16 + + - name: Install Badgen + run: npm install -g badgen-cli + + - name: Generate Badge + id: gen_badge + run: | + HA_VERSION=$(cat config/.HA_VERSION) + badgen "label=HA Version" "status=$HA_VERSION" "color=blue" > ha-version-badge.svg + echo "::set-output name=haVersion::$HA_VERSION" + + - name: Commit and Push changes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + git add ha-version-badge.svg + # Only commit if there's a change + git diff --quiet --cached || git commit -m "Update HA version badge to ${{ steps.gen_badge.outputs.haVersion }}" + git push From cd4b35e804c94b0ab9e7ed178b42a96ccd39d6e4 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo <2160436+CCOSTAN@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:28:39 -0500 Subject: [PATCH 03/10] Update update-badge.yml --- .github/workflows/update-badge.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-badge.yml b/.github/workflows/update-badge.yml index 7a266546..a7ea4251 100644 --- a/.github/workflows/update-badge.yml +++ b/.github/workflows/update-badge.yml @@ -5,6 +5,7 @@ on: branches: [ "master" ] # If your default branch is "master", change this schedule: - cron: '0 0 * * *' # Runs daily at midnight UTC + workflow_dispatch: jobs: build: From b93fef19b7ddd3056ff452353e077d6be34ce583 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo <2160436+CCOSTAN@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:34:54 -0500 Subject: [PATCH 04/10] Update update-badge.yml --- .github/workflows/update-badge.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-badge.yml b/.github/workflows/update-badge.yml index a7ea4251..8fcab4d9 100644 --- a/.github/workflows/update-badge.yml +++ b/.github/workflows/update-badge.yml @@ -27,9 +27,10 @@ jobs: id: gen_badge run: | HA_VERSION=$(cat config/.HA_VERSION) - badgen "label=HA Version" "status=$HA_VERSION" "color=blue" > ha-version-badge.svg + badgen --label "HA Version" --status "$HA_VERSION" --color "blue" > ha-version-badge.svg echo "::set-output name=haVersion::$HA_VERSION" + - name: Commit and Push changes run: | git config user.name "github-actions[bot]" From 54d2ef79d758b5458745d2fea5dcb3522236a888 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 24 Dec 2024 16:35:17 +0000 Subject: [PATCH 05/10] Update HA version badge to 2024.12.4 --- ha-version-badge.svg | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ha-version-badge.svg diff --git a/ha-version-badge.svg b/ha-version-badge.svg new file mode 100644 index 00000000..90837719 --- /dev/null +++ b/ha-version-badge.svg @@ -0,0 +1,16 @@ + + 2024.12.4 + + + + + + + + + + + From ff3c8df902e380ed268541f065d5fb60e6022732 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 24 Dec 2024 16:36:06 +0000 Subject: [PATCH 06/10] Update HA version badge to 2024.12.4 --- ha-version-badge.svg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ha-version-badge.svg b/ha-version-badge.svg index 90837719..6d4fdf9f 100644 --- a/ha-version-badge.svg +++ b/ha-version-badge.svg @@ -1,13 +1,13 @@ 2024.12.4 - + - - + + - +
-[![My HA Version](https://img.shields.io/github/v/tag/ccostan/home-assistantconfig?color=d42a1e&label=My%20HA%20Version&logo=homeassistant&logoColor=white&?cacheSeconds=600)](https://github.com/ccostan/home-assistantconfig/blob/master/config/.HA_VERSION) +![HA Version Badge](https://raw.githubusercontent.com/ccostan/home-assistantconfig/master/ha-version-badge.svg) +

From 6ea09aab6f35083bdec81d804e22813332008fdf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 24 Dec 2024 16:39:12 +0000 Subject: [PATCH 08/10] Update HA version badge to 2024.12.4 --- ha-version-badge.svg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ha-version-badge.svg b/ha-version-badge.svg index 6d4fdf9f..f2e8d994 100644 --- a/ha-version-badge.svg +++ b/ha-version-badge.svg @@ -1,13 +1,13 @@ 2024.12.4 - + - - + + - +
-![HA Version Badge](https://raw.githubusercontent.com/ccostan/home-assistantconfig/master/ha-version-badge.svg) - +[![HA Version Badge](https://raw.githubusercontent.com/ccostan/home-assistantconfig/master/ha-version-badge.svg)](https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/config/.HA_VERSION)

From a1388a6f82eef9e3dc72865b8cd685717ab9b053 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 24 Dec 2024 16:42:45 +0000 Subject: [PATCH 10/10] Update HA version badge to 2024.12.4 --- ha-version-badge.svg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ha-version-badge.svg b/ha-version-badge.svg index f2e8d994..ca00f6fa 100644 --- a/ha-version-badge.svg +++ b/ha-version-badge.svg @@ -1,13 +1,13 @@ 2024.12.4 - + - - + + - +