Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/release.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .github/workflows/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ jobs:
core.info(`Comment body to post:\n${commentBody}`);

const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const commentDelayMs = 1000;
const withRetry = async (fn, label) => {
const maxAttempts = 3;
for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
Expand Down Expand Up @@ -839,6 +840,10 @@ jobs:
continue;
}

if (commentedCount > 0) {
await sleep(commentDelayMs);
}

await withRetry(
() =>
github.rest.issues.createComment({
Expand Down
Loading