diff --git a/.github/workflows/ux-platform-contract.yml b/.github/workflows/ux-platform-contract.yml index 7e70116..785ccf6 100644 --- a/.github/workflows/ux-platform-contract.yml +++ b/.github/workflows/ux-platform-contract.yml @@ -24,25 +24,20 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 10 steps: - - name: Repository auschecken - uses: actions/checkout@v6 - with: - fetch-depth: 0 + - name: Exakten Commit ohne Marketplace-Action auschecken + run: | + git init . + git remote add origin "${{ github.server_url }}/${{ github.repository }}.git" + git fetch --depth=1 origin "${{ github.sha }}" + git checkout --detach FETCH_HEAD - name: Runner-Node und Plattform dokumentieren run: | - node -e "const fs=require('fs'); fs.mkdirSync('artifacts',{recursive:true}); const report=['Platform: '+process.platform,'Node: '+process.version,'Architecture: '+process.arch,''].join('\\n'); fs.writeFileSync('artifacts/ux-platform-preflight.log',report); process.stdout.write(report);" + node -e "const report=['Platform: '+process.platform,'Node: '+process.version,'Architecture: '+process.arch,'Commit: '+process.env.GITHUB_SHA,''].join('\\n'); process.stdout.write(report);" - name: Navigation API und Safe Actions prüfen run: node tools/run-ux-platform-gates.mjs - - name: UX-Plattformdiagnose sichern + - name: Diagnose immer ausgeben if: always() - uses: actions/upload-artifact@v4 - with: - name: ux-platform-${{ matrix.os }}-${{ github.event.pull_request.head.sha || github.sha }} - path: | - artifacts/ux-platform-preflight.log - artifacts/ux-platform-gates.log - if-no-files-found: warn - retention-days: 14 + run: node -e "const fs=require('fs'); for (const file of ['artifacts/ux-platform-preflight.log','artifacts/ux-platform-gates.log']) { if (fs.existsSync(file)) { console.log('--- '+file+' ---'); process.stdout.write(fs.readFileSync(file,'utf8')); } }"