Skip to content

PSDevOps.PSSVG.ps1 should avoid unordered hashtables #79

PSDevOps.PSSVG.ps1 should avoid unordered hashtables

PSDevOps.PSSVG.ps1 should avoid unordered hashtables #79


name: Trace On Issue Opened Or Edited
on:
issues:
types:
- opened
- edited
jobs:
TraceGitHubEvent:
runs-on: ubuntu-latest
steps:
- name: TraceGitHubEvent
id: TraceGitHubEvent
shell: pwsh
run: |
# Traces the GitHub Event
$gitHubEvent = if ($env:GITHUB_EVENT_PATH) {
[IO.File]::ReadAllText($env:GITHUB_EVENT_PATH) | ConvertFrom-Json
} else { $null }
@"
$($gitHubEvent | ConvertTo-Json -Depth 100)
"@ | Out-Host