Skip to content

PSDevOps in Docker

PSDevOps in Docker #91


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