fix: remove deprecated setOutput

This commit is contained in:
Amin Yahyaabadi 2022-11-08 16:30:09 -08:00
parent 4e382d504c
commit a1958c0408
6 changed files with 7 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -31,7 +31,7 @@
"lint": "run-p --aggregate-output --continue-on-error lint.cspell lint.eslint lint.prettier lint.tsc", "lint": "run-p --aggregate-output --continue-on-error lint.cspell lint.eslint lint.prettier lint.tsc",
"lint.cspell": "cspell lint --no-progress --show-suggestions --cache --cache-location ./.cache/cspell/.cspellcache", "lint.cspell": "cspell lint --no-progress --show-suggestions --cache --cache-location ./.cache/cspell/.cspellcache",
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix", "lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
"lint.prettier": "prettier --write .", "lint.prettier": "prettier --list-different --write .",
"lint.tsc": "tsc --noEmit", "lint.tsc": "tsc --noEmit",
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && ts-node --esm ./dev/scripts/pack-exe.ts", "pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && ts-node --esm ./dev/scripts/pack-exe.ts",
"prepare": "pnpm run -r build && pnpm run -w build", "prepare": "pnpm run -r build && pnpm run -w build",

View File

@ -1,9 +1,8 @@
import semverLte from "semver/functions/lte" import semverLte from "semver/functions/lte"
import { isUrlOnline } from "is-url-online" import { isUrlOnline } from "is-url-online"
import { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from "../utils/setup/version" import { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from "../utils/setup/version"
import { warning } from "ci-log" import { info, warning } from "ci-log"
import { PackageInfo } from "../utils/setup/setupBin" import { PackageInfo } from "../utils/setup/setupBin"
import { setOutput } from "@actions/core"
import { addExeExt } from "patha" import { addExeExt } from "patha"
import { extractExe, extractTarByExe } from "../utils/setup/extract" import { extractExe, extractTarByExe } from "../utils/setup/extract"
@ -260,7 +259,7 @@ export async function getLLVMPackageInfo(
_arch: string _arch: string
): Promise<PackageInfo> { ): Promise<PackageInfo> {
const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl) const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)
setOutput("llvm", specificVersion) info(`specific llvm version: ${specificVersion}`)
return { return {
url, url,
extractedFolderName: "", extractedFolderName: "",