From 1ee445941edf47d0947116bf6ab2c0510378be89 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 4 Oct 2025 20:25:57 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20network=20a?= =?UTF-8?q?nd=20public=20IP=20information=20logging=20to=20main.ps1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/main.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 135c99e..e8a007c 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -1,7 +1,8 @@ [CmdletBinding()] param() -$PSStyle.OutputRendering = 'Ansi' +Install-PSResource -Repository PSGallery -TrustRepository -Name Net +Install-PSResource -Repository PSGallery -TrustRepository -Name PublicIP Import-Module "$PSScriptRoot/Helpers.psm1" $CONTEXT_GITHUB = $env:CONTEXT_GITHUB | ConvertFrom-Json -Depth 100 @@ -69,6 +70,15 @@ LogGroup 'Context: [INPUTS]' { $env:CONTEXT_INPUTS } +LogGroup 'Network Info' { + Get-NetIPConfiguration +} + +LogGroup 'Public IP Info' { + Get-PublicIP +} + + LogGroup "File system at [$pwd]" { Get-ChildItem -Path . -Force | Select-Object -ExpandProperty FullName | Sort-Object } From 3d8cdd8d9593c26c38139fc94aa9080dc528bf82 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 4 Oct 2025 20:29:23 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20logging?= =?UTF-8?q?=20for=20network=20and=20public=20IP=20information=20in=20main.?= =?UTF-8?q?ps1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/main.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index e8a007c..dd6faea 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -71,11 +71,11 @@ LogGroup 'Context: [INPUTS]' { } LogGroup 'Network Info' { - Get-NetIPConfiguration + Write-Host "$(Get-NetIPConfiguration | Out-String)" } LogGroup 'Public IP Info' { - Get-PublicIP + Write-Host "$(Get-PublicIP | Out-String)" } From 76e59924456e6b79066109ff7281019cb4376397 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 4 Oct 2025 20:31:50 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20action.y?= =?UTF-8?q?ml=20to=20correct=20input=20parameters=20for=20debugging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 5ff05ad..6d95f63 100644 --- a/action.yml +++ b/action.yml @@ -25,8 +25,7 @@ runs: # CONTEXT_NEEDS: ${{ toJson(needs) }} CONTEXT_INPUTS: ${{ toJson(inputs) }} with: - Debug: true - Verbose: true + Name: Debug Script: | # Debug environment ${{ github.action_path }}/scripts/main.ps1