Files
Kaloyan DanchevandClaude Opus 4.6 cbea5a322f
CI / Identify a merged version PR (push) Canceled after 0s
CI / Rust checks, rendering, and native package (push) Canceled after 0s
CI / Publish release and Homebrew feed (push) Canceled after 0s
Release PR / Maintain Version Packages PR (push) Canceled after 0s
Merge Luma launcher fork into monorepo
Move trampoline files (boot-hook, watcher, overlay) into trampoline/
subdirectory. Add upstream Luma v2.3.1 source at repo root with our
additions:

- Page::Ha (4th nav tab) with placeholder empty state
- HA tab config schema and default entity mapping (ha-home/)
- Nav keys renamed: "home" → "start", new "ha" tab between Apps and Settings
- All state.rs/view.rs/main.rs/tests.rs updated for 4-tab navigation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-10-24 11:52:55 +03:00

79 lines
2.7 KiB
YAML

name: Release PR
on:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
version:
name: Maintain Version Packages PR
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: write
pull-requests: write
actions: write
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Create or update the version PR
id: changesets
uses: changesets/action@v2
with:
version-script: pnpm version:release
pr-title: Version Packages
commit-message: Version Packages
create-github-releases: false
push-git-tags: false
- name: Describe the release and run its CI checks
if: steps.changesets.outputs.pr-number != ''
uses: actions/github-script@v8
env:
RELEASE_PR_NUMBER: ${{ steps.changesets.outputs.pr-number }}
with:
script: |
const pull_number = Number(process.env.RELEASE_PR_NUMBER);
const { data: pull } = await github.rest.pulls.get({ ...context.repo, pull_number });
const { data: file } = await github.rest.repos.getContent({
...context.repo,
path: 'package.json',
ref: pull.head.sha,
});
const { version } = JSON.parse(Buffer.from(file.content, 'base64').toString('utf8'));
await github.rest.pulls.update({
...context.repo,
pull_number,
body: [
'## Problem',
'',
'Merged changes are waiting for a coordinated app release.',
'',
'## Solution',
'',
`Release Luma **${version}** with the accumulated Changesets changelog.`,
'',
'Synchronize package.json, appinfo.json, the root Cargo.toml, Cargo.lock and the README IPK examples.',
'Merging this PR into main publishes the verified IPK and Homebrew feed after CI passes.',
].join('\n'),
});
// GITHUB_TOKEN-created PRs do not trigger pull_request workflows.
// workflow_dispatch is explicitly allowed and checks the version branch's head commit.
await github.rest.actions.createWorkflowDispatch({
...context.repo,
workflow_id: 'ci.yml',
ref: pull.head.ref,
});