Skip to content

Commit 8c0e9ea

Browse files
Adding Sample Workflow for TraceIssueOpenedOrEdited
1 parent 8f985e9 commit 8c0e9ea

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)