diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fba578..2787be6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -236,74 +236,3 @@ jobs: release-output/*.zip.sha256 if-no-files-found: error retention-days: 14 - - # BEGIN TEMP WORKER34 PARSER REPAIR - repair-worker34-parser: - name: Worker34 PowerShell-5.1-Kompatibilität reparieren - if: github.ref == 'refs/heads/feature/updater-3.4-lifecycle' || github.event.pull_request.head.ref == 'feature/updater-3.4-lifecycle' - permissions: - contents: read - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - name: Branch vollständig auschecken - uses: actions/checkout@v6 - with: - ref: feature/updater-3.4-lifecycle - fetch-depth: 0 - - - name: Worker-Syntax systematisch korrigieren - shell: python - run: | - from pathlib import Path - import re - - worker = Path('scripts/updater/Vendoo.Updater.Worker34.ps1') - text = worker.read_text(encoding='utf-8-sig') - - text, foreach_count = re.subn( - r'foreach\(\$([A-Za-z_][A-Za-z0-9_]*)\s+in(?=[@$])', - r'foreach($\1 in ', - text, - ) - text, in_operator_count = re.subn( - r'(?<=\S)-in(?=[@$])', - ' -in ', - text, - ) - - if foreach_count < 1: - raise SystemExit('Keine inkompatiblen foreach-Konstruktionen gefunden.') - if re.search(r'foreach\(\$[A-Za-z_][A-Za-z0-9_]*\s+in(?=[@$])', text): - raise SystemExit('Mindestens eine inkompatible foreach-Konstruktion ist verblieben.') - if re.search(r'(?<=\S)-in(?=[@$])', text): - raise SystemExit('Mindestens ein inkompatibler -in-Operator ist verblieben.') - - worker.write_text('\ufeff' + text, encoding='utf-8', newline='\n') - print(f'Korrigiert: {foreach_count} foreach-Konstruktionen, {in_operator_count} -in-Operatoren.') - - - name: Temporären Reparaturjob aus Exportdatei 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 WORKER34 PARSER REPAIR\n' - if text.count(marker) != 1: - raise SystemExit(f'Temporärer Reparaturmarker nicht eindeutig: {text.count(marker)}') - ci.write_text(text.split(marker, 1)[0].rstrip() + '\n', encoding='utf-8', newline='\n') - - - name: Release-Manifest aus dem finalen Exportbaum erzeugen - run: node tools/generate-release-manifest.mjs . - - - name: Bereinigte Reparaturdateien sichern - uses: actions/upload-artifact@v4 - with: - name: worker34-parser-repair-${{ github.event.pull_request.head.sha || github.sha }} - path: | - scripts/updater/Vendoo.Updater.Worker34.ps1 - .github/workflows/ci.yml - release-manifest.json - if-no-files-found: error - retention-days: 14