diff --git a/src/actions.js b/src/actions.js new file mode 100644 index 0000000..f51328b --- /dev/null +++ b/src/actions.js @@ -0,0 +1,6 @@ +import { issueCommand } from "@actions/core/lib/command.js"; + +// FIXME: See https://github.com/actions/toolkit/issues/777 +export function setOutput(name, value) { + issueCommand("set-output", { name }, value); +} diff --git a/src/main.js b/src/main.js index 0e01a75..64e0e68 100644 --- a/src/main.js +++ b/src/main.js @@ -5,10 +5,10 @@ import { info, notice, setFailed, - setOutput, warning, } from "@actions/core"; import { context, getOctokit } from "@actions/github"; +import { setOutput } from "./actions.js"; import { modifyReleaseAssets } from "./asset.js"; import { renderReleaseBody } from "./body.js"; import { readConfig } from "./config/reading.js";