ci: stage updater 3.4 PowerShell static diagnostics
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
name: Diagnose Updater 3.4 PowerShell Static Gate
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- feature/updater-3.4-lifecycle
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
group: diagnose-updater-34-powershell
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
diagnose:
|
||||
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
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22.x'
|
||||
|
||||
- name: Statisches Gate vollständig erfassen
|
||||
id: gate
|
||||
shell: bash
|
||||
run: |
|
||||
set +e
|
||||
node tools/verify-powershell-static.mjs > /tmp/updater34-static.txt 2>&1
|
||||
status=$?
|
||||
echo "status=$status" >> "$GITHUB_OUTPUT"
|
||||
cat /tmp/updater34-static.txt
|
||||
exit 0
|
||||
|
||||
- name: Diagnose an Draft-PR schreiben
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
shell: bash
|
||||
run: |
|
||||
{
|
||||
echo '### Automatische PowerShell-Static-Diagnose'
|
||||
echo
|
||||
echo '```text'
|
||||
cat /tmp/updater34-static.txt
|
||||
echo '```'
|
||||
echo
|
||||
echo "Exit-Code: ${{ steps.gate.outputs.status }}"
|
||||
} > /tmp/comment.md
|
||||
gh pr comment 28 --repo Masterluke77/vendoo --body-file /tmp/comment.md
|
||||
|
||||
- name: Temporären Diagnoseworkflow entfernen
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
rm -f .github/workflows/diagnose-updater34-powershell.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: remove temporary updater diagnostics'
|
||||
git push origin HEAD:feature/updater-3.4-lifecycle
|
||||
Reference in New Issue
Block a user