Skip to content

Commit

Permalink
2 to 5 second
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiit145 committed Jan 6, 2025
1 parent 3189ca8 commit 18d8677
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27612,6 +27612,10 @@ async function run() {
// Commit each change
execSync(`git add ${filePath}`);
execSync(`git commit -m "${commitMessage} - Update ${i + 1}"`);

// Add random delay between 2 to 5 seconds
const delay = Math.floor(Math.random() * 5000) + 2000;
await new Promise(resolve => setTimeout(resolve, delay));
}

// Publish the branch
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ async function run() {
execSync(`git add ${filePath}`);
execSync(`git commit -m "${commitMessage} - Update ${i + 1}"`);

// Add random delay between 1 to 5 seconds
const delay = Math.floor(Math.random() * 5000) + 1000;
// Add random delay between 2 to 5 seconds
const delay = Math.floor(Math.random() * 5000) + 2000;
await new Promise(resolve => setTimeout(resolve, delay));
}

Expand Down

0 comments on commit 18d8677

Please sign in to comment.