From 2bd7b411ecab4ad2587570eab0d54b80fe4b3bc0 Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Thu, 23 Apr 2026 13:25:14 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20integration=20workflow=20=E2=80=94=20cor?= =?UTF-8?q?rect=20binary=20name=20and=20report=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two bugs in polypilot-integration.yml: 1. Linux/GTK binary detection searched for 'PolyPilot.Gtk' but the csproj has AssemblyName='PolyPilot'. Fixed to search for 'PolyPilot' and 'PolyPilot.dll'. 2. Report job's 'gh pr comment' failed with 'not a git repository' because there's no checkout step. Added --repo flag instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/polypilot-integration.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/polypilot-integration.yml b/.github/workflows/polypilot-integration.yml index f4374dbc89..f52c6d4782 100644 --- a/.github/workflows/polypilot-integration.yml +++ b/.github/workflows/polypilot-integration.yml @@ -78,10 +78,11 @@ jobs: run: | echo "=== Build output ===" ls -la PolyPilot.Gtk/bin/Debug/net10.0/ 2>/dev/null | head -20 || true - BINARY=$(find PolyPilot.Gtk/bin/Debug -name "PolyPilot.Gtk" -type f -executable 2>/dev/null | head -1) + # AssemblyName in PolyPilot.Gtk.csproj is "PolyPilot" (not "PolyPilot.Gtk") + BINARY=$(find PolyPilot.Gtk/bin/Debug -name "PolyPilot" -type f -executable 2>/dev/null | head -1) if [ -z "$BINARY" ]; then # On Linux, the native executable may not exist — use dotnet exec with the DLL - DLL=$(find PolyPilot.Gtk/bin/Debug -name "PolyPilot.Gtk.dll" -type f 2>/dev/null | head -1) + DLL=$(find PolyPilot.Gtk/bin/Debug -name "PolyPilot.dll" -type f 2>/dev/null | head -1) if [ -n "$DLL" ]; then echo "No native executable found, using dotnet exec: $DLL" BINARY="dotnet $DLL" @@ -764,4 +765,4 @@ jobs: [View full run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) EOF - gh pr comment "$PR" --body "$(cat /tmp/report.md)" + gh pr comment "$PR" --repo "${{ github.repository }}" --body "$(cat /tmp/report.md)"