From 6fad9d707417d38ca60e11627b1aa4a2435ee4b4 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 2 Aug 2025 22:58:11 +0200 Subject: [PATCH] Update `stable` tag automatically To make it easier to release. I will point users to `main` instead. --- .github/workflows/versioning.yml | 15 ++++++++------- README.md | 6 +++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index ea3c246..34e8d95 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -19,12 +19,12 @@ on: # yamllint disable-line rule:truthy update_stable: description: "Update stable tag?" required: true - default: false + default: true type: boolean update_latest: description: "Update latest tag?" required: true - default: false + default: true type: boolean jobs: @@ -55,9 +55,10 @@ jobs: - name: Update stable tag if: | - success() && - github.event_name == 'workflow_dispatch' && - inputs.update_stable + success() && ( + github.event_name == 'workflow_dispatch' && inputs.update_stable || + github.event_name == 'push' + ) run: | # Verify version bump was successful if [ ! -f "./versioning/VERSION" ]; then @@ -74,7 +75,7 @@ jobs: # Update tag NEW_VERSION=$(cat ./versioning/VERSION) echo "Updating stable tag to $NEW_VERSION" - git tag -fa stable -m "Update stable tag" + git tag -fa stable -m "Update stable tag to $NEW_VERSION" git push origin stable --force - name: Update latest tag @@ -99,6 +100,6 @@ jobs: # Update tag NEW_VERSION=$(cat ./versioning/VERSION) echo "Updating latest tag to $NEW_VERSION" - git tag -fa latest -m "Update latest tag" + git tag -fa latest -m "Update latest tag to $NEW_VERSION" git push origin latest --force ... diff --git a/README.md b/README.md index 9a81137..a9566aa 100644 --- a/README.md +++ b/README.md @@ -161,11 +161,11 @@ Follow these steps to get your TX Ultimate device up and running with ESPHome. packages: remote_package: url: https://github.com/edwardtfn/TX-Ultimate-Easy - ref: stable # Or you can specify a version, like `ref: v2024.12.6` or `ref: latest` to the latest non-stable + ref: main # Or you can specify a version, like `ref: v2024.12.6` or `ref: latest` refresh: 5min files: - - ESPHome/TX-Ultimate-Easy-ESPHome_core.yaml # Core (essential) packages - - ESPHome/TX-Ultimate-Easy-ESPHome_standard.yaml # Non-essential, but recommended packages + - ESPHome/TX-Ultimate-Easy-ESPHome_core.yaml # Core (essential) packages + - ESPHome/TX-Ultimate-Easy-ESPHome_standard.yaml # Non-essential, but recommended packages ``` You can also use a specific version tag for better control over updates: ```yaml