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 diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 135c99e..dd6faea 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' { + Write-Host "$(Get-NetIPConfiguration | Out-String)" +} + +LogGroup 'Public IP Info' { + Write-Host "$(Get-PublicIP | Out-String)" +} + + LogGroup "File system at [$pwd]" { Get-ChildItem -Path . -Force | Select-Object -ExpandProperty FullName | Sort-Object }