Skip to content

Commit

Permalink
test: Adding Jitter directly to SyncIssue ( Fixes #91 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Oct 15, 2024
1 parent 0f2399f commit 925dc84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Examples/SyncIssue.PSJekyll.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ if (-not $gitHubEvent.issue -and -not $gitHubEvent.discussion) {
Write-Warning "GitHub Event is not an issue or discussion, will not sync"
}

Start-Sleep -Milliseconds (Get-Random -Minimum 3000 -Maximum 15000)
$null = git pull

if ($gitHubEvent.issue) {
$psJekyll.CurrentSite.Data = @{"issues/$($gitHubEvent.issue.number)" = $gitHubEvent.issue}
}
Expand Down

0 comments on commit 925dc84

Please sign in to comment.