Skip to content

Commit 6404bd0

Browse files
authored
Merge pull request #189 from opt-nc/develop
Develop
2 parents 6537d9c + cd4915c commit 6404bd0

File tree

5 files changed

+48
-49
lines changed

5 files changed

+48
-49
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...`);

package-lock.json

Lines changed: 42 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
},
1515
"devDependencies": {
1616
"@vercel/ncc": "^0.38.3",
17-
"eslint": "^9.32.0"
17+
"eslint": "^9.33.0"
1818
}
1919
}

0 commit comments

Comments
 (0)