Skip to content

Commit

Permalink
what are the chances this change from set-output to GITHUB_OUTPUT wil…
Browse files Browse the repository at this point in the history
…l work
  • Loading branch information
joshschmelzle authored Nov 7, 2024
1 parent 2344977 commit 1c60c2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,15 @@ module.exports = (function (e) {
if (["false", "False", "FALSE"].includes(r)) return !1;
throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``);
}),
// (t.setOutput = function (e, t) {
// process.stdout.write(p.EOL), a.issueCommand("set-output", { name: e }, t);
// }),
(t.setOutput = function (e, t) {
process.stdout.write(p.EOL), a.issueCommand("set-output", { name: e }, t);
const fs = require('fs');
const outputPath = process.env.GITHUB_OUTPUT;
if (outputPath) {
fs.appendFileSync(outputPath, `${e}=${t}${require('os').EOL}`);
}
}),
(t.setCommandEcho = function (e) {
a.issue("echo", e ? "on" : "off");
Expand Down

0 comments on commit 1c60c2d

Please sign in to comment.