From 356b929a7eee183bcf9d4bccb9e7ac643fc80c0d Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 2 May 2022 21:48:21 -0700 Subject: [PATCH] fix: use notice instead of info in some palces --- src/doxygen/doxygen.ts | 4 ++-- src/main.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/doxygen/doxygen.ts b/src/doxygen/doxygen.ts index 6f610020..60e11581 100644 --- a/src/doxygen/doxygen.ts +++ b/src/doxygen/doxygen.ts @@ -5,7 +5,7 @@ import { setupBrewPack } from "../utils/setup/setupBrewPack" import { setupChocoPack } from "../utils/setup/setupChocoPack" import { addBinExtension } from "../utils/extension/extension" import { extractTar } from "../utils/setup/extract" -import { info } from "../utils/io/io" +import { notice } from "../utils/io/io" import { setupGraphviz } from "../graphviz/graphviz" import { getVersion } from "../default_versions" @@ -47,7 +47,7 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch) } catch (err) { - info(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`) + notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`) installationInfo = setupAptPack("doxygen", undefined) } await setupGraphviz(getVersion("graphviz", undefined), "", arch) diff --git a/src/main.ts b/src/main.ts index e2105355..3b671da5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -import { getInput, endGroup, startGroup } from "@actions/core" +import { getInput, endGroup, startGroup, notice } from "@actions/core" import { setupBrew } from "./brew/brew" import { setupCcache } from "./ccache/ccache" import { setupMake } from "./make/make" @@ -217,7 +217,7 @@ export async function main(args: string[]): Promise { } case "appleclang": case "applellvm": { - info("Assuming apple-clang is already installed") + notice("Assuming apple-clang is already installed") addEnv("CC", "clang") addEnv("CXX", "clang++") successMessages.push(getSuccessMessage("apple-clang", undefined)) @@ -289,7 +289,7 @@ export function getCompilerInfo(maybeCompiler: string) { if (semverValid(maybeVersion) !== null) { return { compiler, version: maybeVersion } } else { - info(`Invalid semver version ${maybeVersion} used for the compiler.`) + notice(`Invalid semver version ${maybeVersion} used for the compiler.`) return { compiler, version: maybeVersion } } }