Skip to content

Commit 522187a

Browse files
Testing sample half-hourly scheduled trigger
1 parent 5492e77 commit 522187a

File tree

1 file changed

+23
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)