diff --git a/dist/action.mjs b/dist/action.mjs index 4f22d6e..eb9d4d5 100644 --- a/dist/action.mjs +++ b/dist/action.mjs @@ -5,6 +5,7 @@ import path from 'node:path'; import { execFileSync } from 'node:child_process'; /** + * @internal * Retrieves the value of an environment variable. * * @param name - The name of the environment variable. @@ -25,7 +26,7 @@ function mustGetEnvironment(name) { * @returns The value of the GitHub Actions input, or an empty string if not found. */ function getInput(name) { - const value = process.env[`INPUT_${name.toUpperCase()}`] || ""; + const value = process.env[`INPUT_${name.toUpperCase()}`] ?? ""; return value.trim(); } /** diff --git a/package.json b/package.json index 1d785c9..53e92ad 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test": "jest" }, "dependencies": { - "gha-utils": "^0.3.0" + "gha-utils": "^0.4.0" }, "devDependencies": { "@eslint/js": "^9.10.0", diff --git a/yarn.lock b/yarn.lock index 4d3ddde..c71dbc8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,10 +2378,10 @@ __metadata: languageName: node linkType: hard -"gha-utils@npm:^0.3.0": - version: 0.3.0 - resolution: "gha-utils@npm:0.3.0" - checksum: 10c0/f8fe13abc48640d60072518260c8e6d5fb695e933c3ef2e16970838d3676254d21ed239e4267ae65f83dc5c167a1bd97959005b713217ead7bf8873e79b2343b +"gha-utils@npm:^0.4.0": + version: 0.4.0 + resolution: "gha-utils@npm:0.4.0" + checksum: 10c0/8ea206e160ee8f67eb1aa2422bfe07d67f609fa294447da1a39d5ce1fc677fd1f5d44386a04aa6d0304f042cf8c430553cd13a7df6e2dabbe07932f5738bb29a languageName: node linkType: hard @@ -4110,7 +4110,7 @@ __metadata: "@types/jest": "npm:^29.5.13" "@types/node": "npm:^22.5.5" eslint: "npm:^9.10.0" - gha-utils: "npm:^0.3.0" + gha-utils: "npm:^0.4.0" jest: "npm:^29.7.0" prettier: "npm:^3.3.3" rollup: "npm:^4.21.3"