Update stable tag automatically
To make it easier to release. I will point users to `main` instead.
This commit is contained in:
15
.github/workflows/versioning.yml
vendored
15
.github/workflows/versioning.yml
vendored
@@ -19,12 +19,12 @@ on: # yamllint disable-line rule:truthy
|
|||||||
update_stable:
|
update_stable:
|
||||||
description: "Update stable tag?"
|
description: "Update stable tag?"
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
update_latest:
|
update_latest:
|
||||||
description: "Update latest tag?"
|
description: "Update latest tag?"
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -55,9 +55,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Update stable tag
|
- name: Update stable tag
|
||||||
if: |
|
if: |
|
||||||
success() &&
|
success() && (
|
||||||
github.event_name == 'workflow_dispatch' &&
|
github.event_name == 'workflow_dispatch' && inputs.update_stable ||
|
||||||
inputs.update_stable
|
github.event_name == 'push'
|
||||||
|
)
|
||||||
run: |
|
run: |
|
||||||
# Verify version bump was successful
|
# Verify version bump was successful
|
||||||
if [ ! -f "./versioning/VERSION" ]; then
|
if [ ! -f "./versioning/VERSION" ]; then
|
||||||
@@ -74,7 +75,7 @@ jobs:
|
|||||||
# Update tag
|
# Update tag
|
||||||
NEW_VERSION=$(cat ./versioning/VERSION)
|
NEW_VERSION=$(cat ./versioning/VERSION)
|
||||||
echo "Updating stable tag to $NEW_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
|
git push origin stable --force
|
||||||
|
|
||||||
- name: Update latest tag
|
- name: Update latest tag
|
||||||
@@ -99,6 +100,6 @@ jobs:
|
|||||||
# Update tag
|
# Update tag
|
||||||
NEW_VERSION=$(cat ./versioning/VERSION)
|
NEW_VERSION=$(cat ./versioning/VERSION)
|
||||||
echo "Updating latest tag to $NEW_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
|
git push origin latest --force
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -161,11 +161,11 @@ Follow these steps to get your TX Ultimate device up and running with ESPHome.
|
|||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/edwardtfn/TX-Ultimate-Easy
|
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
|
refresh: 5min
|
||||||
files:
|
files:
|
||||||
- ESPHome/TX-Ultimate-Easy-ESPHome_core.yaml # Core (essential) packages
|
- 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_standard.yaml # Non-essential, but recommended packages
|
||||||
```
|
```
|
||||||
You can also use a specific version tag for better control over updates:
|
You can also use a specific version tag for better control over updates:
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user