Skip to content

Commit 1ee4459

Browse files
🩹 [Patch]: Add network and public IP information logging to main.ps1
1 parent 317d784 commit 1ee4459

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎scripts/main.ps1‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[CmdletBinding()]
22
param()
33

4-
$PSStyle.OutputRendering = 'Ansi'
4+
Install-PSResource -Repository PSGallery -TrustRepository -Name Net
5+
Install-PSResource -Repository PSGallery -TrustRepository -Name PublicIP
56
Import-Module "$PSScriptRoot/Helpers.psm1"
67

78
$CONTEXT_GITHUB = $env:CONTEXT_GITHUB | ConvertFrom-Json -Depth 100
@@ -69,6 +70,15 @@ LogGroup 'Context: [INPUTS]' {
6970
$env:CONTEXT_INPUTS
7071
}
7172

73+
LogGroup 'Network Info' {
74+
Get-NetIPConfiguration
75+
}
76+
77+
LogGroup 'Public IP Info' {
78+
Get-PublicIP
79+
}
80+
81+
7282
LogGroup "File system at [$pwd]" {
7383
Get-ChildItem -Path . -Force | Select-Object -ExpandProperty FullName | Sort-Object
7484
}

0 commit comments

Comments
 (0)