From cb05237247dfdfe85e3bfd451935689fc3091eb3 Mon Sep 17 00:00:00 2001 From: Masterluke77 <163446896+Masterluke77@users.noreply.github.com> Date: Fri, 10 Jul 2026 14:41:38 +0200 Subject: [PATCH] build: stage updater 3.4 UI routing patch --- .github/workflows/patch-updater34-ui.yml | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/patch-updater34-ui.yml diff --git a/.github/workflows/patch-updater34-ui.yml b/.github/workflows/patch-updater34-ui.yml new file mode 100644 index 0000000..c6c496b --- /dev/null +++ b/.github/workflows/patch-updater34-ui.yml @@ -0,0 +1,56 @@ +name: Patch Updater 3.4 UI Routing + +on: + push: + branches: + - feature/updater-3.4-lifecycle + +permissions: + contents: write + +concurrency: + group: patch-updater-34-ui + cancel-in-progress: false + +jobs: + patch: + if: ${{ github.actor != 'github-actions[bot]' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + ref: feature/updater-3.4-lifecycle + fetch-depth: 0 + + - name: UI exakt auf Lifecycle 3.4 umstellen + shell: python + run: | + from pathlib import Path + + path = Path('scripts/updater/Vendoo.Updater.UI.ps1') + text = path.read_text(encoding='utf-8-sig') + replacements = { + "$UpdaterVersion = '3.3.0'": "$UpdaterVersion = '3.4.0'", + "$WorkerScript = Join-Path $PSScriptRoot 'Vendoo.Updater.Worker.ps1'": "$WorkerScript = Join-Path $PSScriptRoot 'Vendoo.Updater.Worker34.ps1'", + "@{id='production'; title='Produktion vorbereiten'}, @{id='workspace'; title='Arbeitskopie erstellen'}, @{id='tests'; title='Vollständig testen'},": "@{id='production'; title='Zielzustand erkennen'}, @{id='workspace'; title='Payload sicher vorbereiten'}, @{id='tests'; title='Vollständig testen'},", + "@{id='pullrequest'; title='Pull Request erstellen'}, @{id='merge'; title='Sicher mergen'}, @{id='deploy'; title='Coolify deployen'}, @{id='verify'; title='Produktion bestätigen'}": "@{id='pullrequest'; title='Pull Request abgleichen'}, @{id='merge'; title='Finalen Head prüfen und mergen'}, @{id='deploy'; title='Coolify deployen'}, @{id='verify'; title='Produktion bestätigen'}", + "@{id='production';title='Produktion vorbereiten';state='pending'},@{id='workspace';title='Arbeitskopie erstellen';state='pending'},@{id='tests';title='Vollständig testen';state='pending'},": "@{id='production';title='Zielzustand erkennen';state='pending'},@{id='workspace';title='Payload sicher vorbereiten';state='pending'},@{id='tests';title='Vollständig testen';state='pending'},", + "@{id='pullrequest';title='Pull Request erstellen';state='pending'},@{id='merge';title='Sicher mergen';state='pending'},@{id='deploy';title='Coolify deployen';state='pending'},@{id='verify';title='Produktion bestätigen';state='pending'}": "@{id='pullrequest';title='Pull Request abgleichen';state='pending'},@{id='merge';title='Finalen Head prüfen und mergen';state='pending'},@{id='deploy';title='Coolify deployen';state='pending'},@{id='verify';title='Produktion bestätigen';state='pending'}", + } + for old, new in replacements.items(): + count = text.count(old) + if count != 1: + raise SystemExit(f'Erwartete UI-Vertragsstelle nicht eindeutig: {old!r}, Treffer={count}') + text = text.replace(old, new) + path.write_text(text, encoding='utf-8-sig', newline='\n') + + - name: Patch committen und temporären Workflow entfernen + shell: bash + run: | + set -euo pipefail + rm -f .github/workflows/patch-updater34-ui.yml + git config user.name 'vendoo-updater-build' + git config user.email 'vendoo-updater-build@users.noreply.github.com' + git add --all + git commit -m 'chore: route updater UI to lifecycle 3.4' + git push origin HEAD:feature/updater-3.4-lifecycle