mirror of
https://github.com/threeal/cmake-action.git
synced 2026-02-02 03:50:55 +00:00
chore: bump gha-utils from 0.3.0 to 0.4.0 (#457)
Bumps [gha-utils](https://github.com/threeal/gha-utils) from 0.3.0 to 0.4.0. - [Release notes](https://github.com/threeal/gha-utils/releases) - [Commits](https://github.com/threeal/gha-utils/compare/v0.3.0...v0.4.0) --- updated-dependencies: - dependency-name: gha-utils dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
3
dist/action.mjs
generated
vendored
3
dist/action.mjs
generated
vendored
@@ -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();
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user