Skip to content

Commit cd4915c

Browse files
authored
Merge pull request #188 from opt-nc/more-waiting-time
fix: 5s of waitingTime instead of 1
2 parents d8f70a8 + 273bd77 commit cd4915c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { exec } = __nccwpck_require__(5317);
99
const axios = __nccwpck_require__(7269);
1010

1111
const maxAttempts = 3; // Maximum number of attempts for retries
12-
const waitingTime = 1000; // Initial waiting time in milliseconds
12+
const waitingTime = 5000; // Initial waiting time in milliseconds
1313

1414

1515
module.exports = async function () {
@@ -25,7 +25,7 @@ module.exports = async function () {
2525
let attempt = 1;
2626
let success = false;
2727
core.info(`🔁 Attempting to get the latest DuckDB version (max attempts: ${maxAttempts})`);
28-
while (attempt < maxAttempts && !success) {
28+
while (attempt <= maxAttempts && !success) {
2929
core.info(`🔁 Attempt ${attempt}/${maxAttempts} to get the latest DuckDB version...`);
3030
try {
3131
core.info(`🔍 Attempting to fetch latest DuckDB version from GitHub API...`);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { exec } = require('child_process');
33
const axios = require('axios');
44

55
const maxAttempts = 3; // Maximum number of attempts for retries
6-
const waitingTime = 1000; // Initial waiting time in milliseconds
6+
const waitingTime = 5000; // Initial waiting time in milliseconds
77

88

99
module.exports = async function () {
@@ -19,7 +19,7 @@ module.exports = async function () {
1919
let attempt = 1;
2020
let success = false;
2121
core.info(`🔁 Attempting to get the latest DuckDB version (max attempts: ${maxAttempts})`);
22-
while (attempt < maxAttempts && !success) {
22+
while (attempt <= maxAttempts && !success) {
2323
core.info(`🔁 Attempt ${attempt}/${maxAttempts} to get the latest DuckDB version...`);
2424
try {
2525
core.info(`🔍 Attempting to fetch latest DuckDB version from GitHub API...`);

0 commit comments

Comments
 (0)