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:
dependabot[bot]
2024-08-17 22:12:49 +07:00
committed by GitHub
parent b2a028598c
commit e3dae2824f
4 changed files with 12 additions and 12 deletions

8
dist/action.mjs generated vendored
View File

@@ -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);
}