ci: remove final typed-catch repair job
This commit is contained in:
@@ -236,54 +236,3 @@ jobs:
|
||||
release-output/*.zip.sha256
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
# BEGIN TEMP TYPED CATCH REPAIR
|
||||
repair-typed-catch:
|
||||
name: Worker34 typisierten Catch reparieren
|
||||
if: github.event.pull_request.head.ref == 'feature/updater-3.4-lifecycle'
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Branch auschecken
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: feature/updater-3.4-lifecycle
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Typisierten Catch PowerShell-5.1-kompatibel schreiben
|
||||
shell: python
|
||||
run: |
|
||||
from pathlib import Path
|
||||
worker = Path('scripts/updater/Vendoo.Updater.Worker34.ps1')
|
||||
text = worker.read_text(encoding='utf-8-sig')
|
||||
old = '}catch[System.OperationCanceledException]{'
|
||||
new = '} catch [System.OperationCanceledException] {'
|
||||
if text.count(old) != 1:
|
||||
raise SystemExit(f'Typed-Catch-Anker nicht eindeutig: {text.count(old)}')
|
||||
worker.write_text('\ufeff' + text.replace(old, new), encoding='utf-8', newline='\n')
|
||||
|
||||
- name: Temporären Job lokal aus CI entfernen
|
||||
shell: python
|
||||
run: |
|
||||
from pathlib import Path
|
||||
ci = Path('.github/workflows/ci.yml')
|
||||
text = ci.read_text(encoding='utf-8')
|
||||
marker = '\n # BEGIN TEMP TYPED CATCH REPAIR\n'
|
||||
if text.count(marker) != 1:
|
||||
raise SystemExit(f'Temporärer Marker nicht eindeutig: {text.count(marker)}')
|
||||
ci.write_text(text.split(marker, 1)[0].rstrip() + '\n', encoding='utf-8', newline='\n')
|
||||
|
||||
- name: Manifest gegen finalen Baum erzeugen
|
||||
run: node tools/generate-release-manifest.mjs .
|
||||
|
||||
- name: Worker und Manifest committen
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git config user.name 'vendoo-updater-build'
|
||||
git config user.email 'vendoo-updater-build@users.noreply.github.com'
|
||||
git add scripts/updater/Vendoo.Updater.Worker34.ps1 release-manifest.json
|
||||
git commit -m 'fix: make typed Worker34 catch PowerShell 5.1 compatible'
|
||||
git push origin HEAD:feature/updater-3.4-lifecycle
|
||||
|
||||
Reference in New Issue
Block a user