Skip to content

Repair SCL-first workflow and compact layout #10

Repair SCL-first workflow and compact layout

Repair SCL-first workflow and compact layout #10

name: Apply repaired SCL workflow and layout
on:
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
apply:
if: ${{ github.event.pull_request.head.ref == 'fix/scl-workflow-layout-repair' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repair branch
uses: actions/checkout@v4
with:
ref: fix/scl-workflow-layout-repair
fetch-depth: 0
- name: Apply and validate reviewed transformations
id: transform
continue-on-error: true
shell: bash
run: |
set -u
rm -f .repair/apply-error.txt
set +e
{
set -x
python3 -m py_compile .repair/apply.py
python3 .repair/apply.py
base64 --decode .repair/app-icon.b64 > Assets/app-icon.ico
grep -q 'Content="{Binding ControlPendingConfirmationLabel}"' MainWindow.xaml
! grep -q 'Content="Confirm Open"' MainWindow.xaml
! grep -q 'Content="Confirm Close"' MainWindow.xaml
grep -q 'TryClaimControlConfirmation' MainWindow.xaml.cs
grep -q 'SclFindingAggregator.Group(actionableFindings)' MainWindow.xaml.cs
grep -q '<Version>1.6.9</Version>' ArIED61850Tester.csproj
test -s Assets/app-icon.ico
} > .repair/apply-error.txt 2>&1
status=$?
set -e
if [ "$status" -ne 0 ]; then
exit "$status"
fi
- name: Upload repair failure evidence
if: steps.transform.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: scl-workflow-repair-error
path: .repair/apply-error.txt
if-no-files-found: error
- name: Stop after repair failure
if: steps.transform.outcome == 'failure'
shell: bash
run: exit 1
- name: Commit repaired implementation
if: steps.transform.outcome == 'success'
shell: bash
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "4189826+github-actions[bot]@users.noreply.github.com"
git add MainWindow.xaml MainWindow.xaml.cs ArIED61850Tester.csproj .github/workflows/build.yml scripts/publish-windows-portable.ps1 Assets/app-icon.ico docs/SCL_SMART_DYNAMIC_REPORTING.md
git commit -m "fix: repair SCL-first workflow and compact application layout"
git push origin HEAD:fix/scl-workflow-layout-repair