Skip to content

Commit 5492e77

Browse files
Adding GitHub Workflow to Trace on Issue Comment
1 parent 862a53a commit 5492e77

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
name: Trace On Issue Comment
3+
on: issue_comment
4+
jobs:
5+
TraceGitHubEvent:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: TraceGitHubEvent
9+
id: TraceGitHubEvent
10+
shell: pwsh
11+
run: |
12+
# Traces the GitHub Event
13+
$gitHubEvent = if ($env:GITHUB_EVENT_PATH) {
14+
[IO.File]::ReadAllText($env:GITHUB_EVENT_PATH) | ConvertFrom-Json
15+
} else { $null }
16+
17+
@"
18+
$($gitHubEvent | ConvertTo-Json -Depth 100)
19+
"@ | Out-Host
20+
21+

0 commit comments

Comments
 (0)