File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11[CmdletBinding ()]
22param ()
33
4- $PSStyle.OutputRendering = ' Ansi'
4+ Install-PSResource - Repository PSGallery - TrustRepository - Name Net
5+ Install-PSResource - Repository PSGallery - TrustRepository - Name PublicIP
56Import-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-
2914LogGroup ' 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+
7266LogGroup " File system at [$pwd ]" {
7367 Get-ChildItem - Path . - Force | Select-Object - ExpandProperty FullName | Sort-Object
7468}
You can’t perform that action at this time.
0 commit comments