Merge pull request #53 from edwardtfn/use-main-as-ref
Use `main` as reference for remote package
This commit is contained in:
40
.github/workflows/release_tag.yml
vendored
40
.github/workflows/release_tag.yml
vendored
@@ -1,40 +0,0 @@
|
|||||||
# This GitHub Actions workflow updates the "stable" and "latest" Git tags
|
|
||||||
# to point to the tag associated with a newly published release. It performs
|
|
||||||
# the following steps:
|
|
||||||
# 1. Checks out the repository code with full history.
|
|
||||||
# 2. Configures Git with a generic user for the action.
|
|
||||||
# 3. Moves and forcibly pushes the "stable" and "latest" tags to align with
|
|
||||||
# the tag of the newly published release.
|
|
||||||
# This ensures that "stable" and "latest" always point to the most recent release.
|
|
||||||
---
|
|
||||||
name: Update Tags
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-tags:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@main
|
|
||||||
with:
|
|
||||||
fetch-depth: '0'
|
|
||||||
|
|
||||||
- name: Set up Git
|
|
||||||
run: |
|
|
||||||
git config --local user.email "action@github.com"
|
|
||||||
git config --local user.name "GitHub Action"
|
|
||||||
|
|
||||||
- name: Move and push stable tag
|
|
||||||
run: |
|
|
||||||
git tag -f stable ${{ github.event.release.tag_name }}
|
|
||||||
git push -f origin stable
|
|
||||||
|
|
||||||
- name: Move and push latest tag
|
|
||||||
run: |
|
|
||||||
git tag -f latest ${{ github.event.release.tag_name }}
|
|
||||||
git push -f origin latest
|
|
||||||
...
|
|
||||||
4
.github/workflows/validate_esphome.yml
vendored
4
.github/workflows/validate_esphome.yml
vendored
@@ -30,8 +30,6 @@ jobs:
|
|||||||
|
|
||||||
build_basic:
|
build_basic:
|
||||||
name: Basic
|
name: Basic
|
||||||
needs:
|
|
||||||
- code_scan
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
@@ -42,7 +40,6 @@ jobs:
|
|||||||
|
|
||||||
build_bluetooth_proxy_4:
|
build_bluetooth_proxy_4:
|
||||||
name: Bluetooth Proxy (IDF)
|
name: Bluetooth Proxy (IDF)
|
||||||
needs: build_basic
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
@@ -53,7 +50,6 @@ jobs:
|
|||||||
|
|
||||||
build_bluetooth_proxy_53:
|
build_bluetooth_proxy_53:
|
||||||
name: Bluetooth Proxy (IDF v5.3)
|
name: Bluetooth Proxy (IDF v5.3)
|
||||||
needs: build_basic
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
|
|||||||
4
.github/workflows/validate_esphome_beta.yml
vendored
4
.github/workflows/validate_esphome_beta.yml
vendored
@@ -47,8 +47,6 @@ jobs:
|
|||||||
|
|
||||||
build_basic:
|
build_basic:
|
||||||
name: Basic
|
name: Basic
|
||||||
needs:
|
|
||||||
- code_scan
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
@@ -60,7 +58,6 @@ jobs:
|
|||||||
|
|
||||||
build_bluetooth_proxy_4:
|
build_bluetooth_proxy_4:
|
||||||
name: Bluetooth Proxy (IDF)
|
name: Bluetooth Proxy (IDF)
|
||||||
needs: build_basic
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
@@ -72,7 +69,6 @@ jobs:
|
|||||||
|
|
||||||
build_bluetooth_proxy_53:
|
build_bluetooth_proxy_53:
|
||||||
name: Bluetooth Proxy (IDF v5.3)
|
name: Bluetooth Proxy (IDF v5.3)
|
||||||
needs: build_basic
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
|
|||||||
53
.github/workflows/versioning.yml
vendored
53
.github/workflows/versioning.yml
vendored
@@ -1,6 +1,9 @@
|
|||||||
# Workflow for managing versioning and tagging
|
# This GitHub Actions workflow handles version bumping and tag updates.
|
||||||
|
# It can be triggered either by:
|
||||||
|
# 1. Pushing to main branch - automatically bumps version and updates tags
|
||||||
|
# 2. Manual dispatch - allows independent control over stable and latest tags
|
||||||
---
|
---
|
||||||
name: Version Bump and Tag
|
name: Version and Tags
|
||||||
|
|
||||||
on: # yamllint disable-line rule:truthy
|
on: # yamllint disable-line rule:truthy
|
||||||
push:
|
push:
|
||||||
@@ -9,34 +12,56 @@ on: # yamllint disable-line rule:truthy
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**/VERSION'
|
- '**/VERSION'
|
||||||
- '**/VERSION_YAML'
|
- '**/VERSION_YAML'
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
update_stable:
|
update_stable:
|
||||||
description: "Update stable tag?"
|
description: "Update stable tag?"
|
||||||
required: true
|
required: true
|
||||||
default: "false"
|
default: false
|
||||||
|
type: boolean
|
||||||
|
update_latest:
|
||||||
|
description: "Update latest tag?"
|
||||||
|
required: true
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
versioning:
|
version-and-tag:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@v4"
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Git
|
- name: Set up Git
|
||||||
run: |
|
run: |
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "GitHub Actions"
|
||||||
git config user.email "actions@github.com"
|
git config user.email "actions@github.com"
|
||||||
|
|
||||||
- name: Bump Version
|
- name: Bump version
|
||||||
run: |
|
run: |
|
||||||
chmod +x "./versioning/bump_version.sh"
|
chmod +x ./versioning/bump_version.sh
|
||||||
"./versioning/bump_version.sh"
|
./versioning/bump_version.sh
|
||||||
|
|
||||||
- name: Push Changes and Tags
|
- name: Update stable tag
|
||||||
env:
|
if: |
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
success() && (
|
||||||
|
github.event_name == 'workflow_dispatch' && inputs.update_stable ||
|
||||||
|
github.event_name == 'push'
|
||||||
|
)
|
||||||
run: |
|
run: |
|
||||||
git push "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" main
|
git tag -fa stable -m "Update stable tag"
|
||||||
git push "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" --tags
|
git push origin stable --force
|
||||||
|
|
||||||
|
- name: Update latest tag
|
||||||
|
if: |
|
||||||
|
success() && (
|
||||||
|
github.event_name == 'workflow_dispatch' && inputs.update_latest ||
|
||||||
|
github.event_name == 'push'
|
||||||
|
)
|
||||||
|
run: |
|
||||||
|
git tag -fa latest -m "Update latest tag"
|
||||||
|
git push origin latest --force
|
||||||
...
|
...
|
||||||
|
|||||||
17
README.md
17
README.md
@@ -1,19 +1,20 @@
|
|||||||
# TX Ultimate Easy
|
# TX Ultimate Easy
|
||||||
|
|
||||||
<!-- markdownlint-disable MD033 -->
|
[![Version][version-shield]](https://github.com/edwardtfn/TX-Ultimate-Easy/tags)
|
||||||
<a href="https://github.com/edwardtfn/TX-Ultimate-Easy/commits/main" target="_blank">![GitHub Activity][commits-shield]</a>
|
[![GitHub Activity][commits-shield]](https://github.com/edwardtfn/TX-Ultimate-Easy/commits/main)
|
||||||
<a href="LICENSE" target="_blank">![License][license-shield]</a>
|
[![License][license-shield]](LICENSE)
|
||||||
<a href="https://github.com/edwardtfn/TX-Ultimate-Easy/commits/main" target="_blank">![GitHub Last Commit][last-commit-shield]</a>
|
[![GitHub Last Commit][last-commit-shield]](https://github.com/edwardtfn/TX-Ultimate-Easy/commits/main)
|
||||||
<a href="https://esphome.io/" target="_blank">![ESPHome][esphome-shield]</a>
|
[![ESPHome][esphome-shield]](https://esphome.io/)
|
||||||
<a href="https://discord.gg/Db6WJWzWuf" target="_blank">![Discord][discord-shield]</a>
|
[![Discord][discord-shield]](https://discord.gg/Db6WJWzWuf)
|
||||||
<a href="https://www.buymeacoffee.com/edwardfirmo" target="_blank">![Buy me an ice-cream][buymeacoffee-shield]</a>
|
[![Buy me an ice-cream][buymeacoffee-shield]](https://www.buymeacoffee.com/edwardfirmo)
|
||||||
<!-- markdownlint-enable MD033 -->
|
|
||||||
|
|
||||||
<!-- markdownlint-disable MD013 -->
|
<!-- markdownlint-disable MD013 -->
|
||||||
|  | TX Ultimate Easy provides custom ESPHome firmware for Sonoff TX Ultimate devices. Our project focuses on user-friendly configuration through the Home Assistant UI, eliminating the need for manual YAML editing. Whether you're new to home automation or an experienced user, TX Ultimate Easy makes it simple to manage your device. |
|
|  | TX Ultimate Easy provides custom ESPHome firmware for Sonoff TX Ultimate devices. Our project focuses on user-friendly configuration through the Home Assistant UI, eliminating the need for manual YAML editing. Whether you're new to home automation or an experienced user, TX Ultimate Easy makes it simple to manage your device. |
|
||||||
| --- | :-- |
|
| --- | :-- |
|
||||||
<!-- markdownlint-enable MD013 -->
|
<!-- markdownlint-enable MD013 -->
|
||||||
|
|
||||||
|
[version-shield]: https://img.shields.io/github/v/tag/edwardtfn/TX-Ultimate-Easy?label=version
|
||||||
|
[version]: https://github.com/edwardtfn/TX-Ultimate-Easy/tags
|
||||||
[commits-shield]: https://img.shields.io/github/commit-activity/y/edwardtfn/TX-Ultimate-Easy
|
[commits-shield]: https://img.shields.io/github/commit-activity/y/edwardtfn/TX-Ultimate-Easy
|
||||||
[commits]: https://github.com/edwardtfn/TX-Ultimate-Easy/commits/main
|
[commits]: https://github.com/edwardtfn/TX-Ultimate-Easy/commits/main
|
||||||
[license-shield]: https://img.shields.io/github/license/edwardtfn/TX-Ultimate-Easy
|
[license-shield]: https://img.shields.io/github/license/edwardtfn/TX-Ultimate-Easy
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ wifi:
|
|||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/edwardtfn/TX-Ultimate-Easy
|
url: https://github.com/edwardtfn/TX-Ultimate-Easy
|
||||||
ref: latest
|
ref: main
|
||||||
refresh: 30s
|
refresh: 30s
|
||||||
files:
|
files:
|
||||||
- ESPHome/TX-Ultimate-Easy-ESPHome_core.yaml
|
- ESPHome/TX-Ultimate-Easy-ESPHome_core.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user