mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-06 08:03:36 +00:00
A new release is tagged with the UTC day it is built and N = 1..99 for the releases of that day. Every four-field tag is newer than every three-field one (the counter era up to v2026.10.27); four-field tags compare by the date, then by N, as numbers. One comparer per language, held to one table (tests/fixtures/release-tags.tsv): - sh: the release-tag block (tag_ok, tag_key, newer) in tools/releases.sh, word for word in mu300-update and tools/android-install.sh; mu300-update's notice, check, version_ok and releases use it; install.sh's slot check - Python: tools/release_pick.py (a beta must also be newer by its tag) - JavaScript: site/assets/web-installer/version.js, copied into the panel's update.js; github.js's releaseSupportsWeb no longer takes v2026.10.16.1 for older than v2026.10.23 - PowerShell: install.ps1's TagKey/TagNewer - the panel's rpcd, update adapter and dashboard-info accept the new form - make-release.sh --next-tag / --check-tag, requires the new form of today (--any-date); the Release workflow computes the tag when none is given - Magisk versionCode YYYYMMDDNN for four-field tags - docs: FINDINGS 125, BUILD.md, wiki Updating "Release names", the site's update page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
40 lines
1.6 KiB
YAML
40 lines
1.6 KiB
YAML
name: Telegram
|
|
|
|
# The project's Telegram channel hears about a release when it is published (a prerelease too) and when a prerelease
|
|
# becomes the latest release (tools/telegram-announce.sh). The Magisk zips say so from magisk.yml once they are
|
|
# attached. Pushes to main are not announced. For a message about an existing release: Actions > Telegram > Run
|
|
# workflow, with its tag. Secrets: TELEGRAM_BOT_TOKEN (the bot is an admin of the channel), TELEGRAM_CHAT_ID.
|
|
on:
|
|
release:
|
|
types: [published, released]
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Release tag, e.g. v2026.10.21'
|
|
required: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: telegram-${{ github.event.release.tag_name || github.event.inputs.tag }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
announce:
|
|
# only the project's releases (vYYYY.MM.DD.N; up to v2026.10.27 vYYYY.MM.DD - docs/FINDINGS.md 125): a test build
|
|
# for an issue, published as a pre-release under another tag (test-issue-102), is neither announced nor given
|
|
# Magisk zips
|
|
if: startsWith(github.event.release.tag_name || github.event.inputs.tag, 'v')
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
TAG: ${{ github.event.release.tag_name || github.event.inputs.tag }}
|
|
ACTION: ${{ github.event.action || 'published' }}
|
|
GH_TOKEN: ${{ github.token }}
|
|
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
|
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Announce
|
|
run: sh tools/telegram-announce.sh release "$TAG" "$ACTION"
|