mirror of
https://github.com/threeal/cmake-action.git
synced 2026-02-01 19:40:49 +00:00
chore: bump gha-utils from 0.1.0 to 0.2.0 (#414)
Bumps [gha-utils](https://github.com/threeal/gha-utils) from 0.1.0 to 0.2.0. - [Release notes](https://github.com/threeal/gha-utils/releases) - [Commits](https://github.com/threeal/gha-utils/compare/v0.1.0...v0.2.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> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
8
dist/action.mjs
generated
vendored
8
dist/action.mjs
generated
vendored
@@ -1,7 +1,7 @@
|
||||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
import path from 'node:path';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
|
||||
/**
|
||||
* Retrieves the value of a GitHub Actions input.
|
||||
@@ -23,11 +23,11 @@ function setOutput(name, value) {
|
||||
fs.appendFileSync(process.env["GITHUB_OUTPUT"], `${name}=${value}${os.EOL}`);
|
||||
}
|
||||
/**
|
||||
* Logs an error message on GitHub Actions.
|
||||
* Logs an error message in GitHub Actions.
|
||||
*
|
||||
* @param err - The error, which can be of any type.
|
||||
*/
|
||||
function error(err) {
|
||||
function logError(err) {
|
||||
const message = err instanceof Error ? err.message : String(err);
|
||||
process.stdout.write(`::error::${message}${os.EOL}`);
|
||||
}
|
||||
@@ -115,6 +115,6 @@ try {
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
error(err);
|
||||
logError(err);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user