File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,16 @@ Start-Sleep -Seconds (Get-Random -Minimum 10 -Maximum 20)
66get merge origin/ main | Out-Host
77git pull | Out-Host
88
9- if ($gitHubEvent.issue ) {
10- $psJekyll.CurrentSite.Data = @ {" issues/$ ( $gitHubEvent.issue.number ) " = $gitHubEvent.issue }
11- }
12- if ($gitHubEvent.discussion ) {
13- $psJekyll.CurrentSite.Data = @ {" discussions/$ ( $gitHubEvent.discussion.number ) " = $gitHubEvent.discussion }
9+ if ($GitHubToken -and $env: GIHUB_REPOSIORY ) {
10+ $owner , $repo = $env: GIHUB_REPOSIORY -split ' /'
11+ " Getting issues for $owner , $repo " | Out-Host
12+ } else {
13+ if ($gitHubEvent.issue ) {
14+ $psJekyll.CurrentSite.Data = @ {" issues/$ ( $gitHubEvent.issue.number ) " = $gitHubEvent.issue }
15+ }
16+ if ($gitHubEvent.discussion ) {
17+ $psJekyll.CurrentSite.Data = @ {" discussions/$ ( $gitHubEvent.discussion.number ) " = $gitHubEvent.discussion }
18+ }
1419}
1520
1621$psJekyll.CurrentSite.Data
You can’t perform that action at this time.
0 commit comments