Skip to content

Commit a7aeeee

Browse files
Merge branch 'main' of https://github.com/PSModule/debug into dependabot
2 parents e9436c7 + 4390bce commit a7aeeee

2 files changed

Lines changed: 12 additions & 19 deletions

File tree

action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ runs:
2525
# CONTEXT_NEEDS: ${{ toJson(needs) }}
2626
CONTEXT_INPUTS: ${{ toJson(inputs) }}
2727
with:
28-
Debug: true
29-
Verbose: true
28+
Name: Debug
3029
Script: |
3130
# Debug environment
3231
${{ github.action_path }}/scripts/main.ps1

scripts/main.ps1

Lines changed: 11 additions & 17 deletions
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
@@ -10,22 +11,6 @@ LogGroup 'Context: [GITHUB]' {
1011
$CONTEXT_GITHUB | ConvertTo-Json -Depth 100
1112
}
1213

13-
LogGroup 'Context: [GITHUB_EVENT]' {
14-
$CONTEXT_GITHUB.event | ConvertTo-Json -Depth 100
15-
}
16-
17-
LogGroup 'Context: [GITHUB_EVENT_ENTERPRISE]' {
18-
$CONTEXT_GITHUB | ConvertTo-Json -Depth 100
19-
}
20-
21-
LogGroup 'Context: [GITHUB_EVENT_ORGANIZATION]' {
22-
$CONTEXT_GITHUB.event.organization | ConvertTo-Json -Depth 100
23-
}
24-
25-
LogGroup 'Context: [GITHUB_EVENT_REPOSITORY]' {
26-
$CONTEXT_GITHUB.event.repository | ConvertTo-Json -Depth 100
27-
}
28-
2914
LogGroup 'Context: [ENV]' {
3015
$env:CONTEXT_ENV
3116
}
@@ -69,6 +54,15 @@ LogGroup 'Context: [INPUTS]' {
6954
$env:CONTEXT_INPUTS
7055
}
7156

57+
LogGroup 'Network Info' {
58+
Write-Host "$(Get-NetIPConfiguration | Out-String)"
59+
}
60+
61+
LogGroup 'Public IP Info' {
62+
Write-Host "$(Get-PublicIP | Out-String)"
63+
}
64+
65+
7266
LogGroup "File system at [$pwd]" {
7367
Get-ChildItem -Path . -Force | Select-Object -ExpandProperty FullName | Sort-Object
7468
}

0 commit comments

Comments
 (0)