diff --git a/internal/get/index.js b/internal/get/index.js index b9b7026..ed19f64 100644 --- a/internal/get/index.js +++ b/internal/get/index.js @@ -1,9 +1,10 @@ import { format } from 'date-fns' import { toZonedTime } from 'date-fns-tz' +import fs from 'fs' import { load } from 'js-yaml' import { z } from 'zod' -import { getInput, setFailed, setOutput } from '@actions/core' +import { getInput, setFailed } from '@actions/core' import github from '@actions/github' import { Octokit } from '@octokit/rest' @@ -100,7 +101,13 @@ async function main() { }) } } - setOutput('build_args', JSON.stringify(outputs)) + + fs.writeFileSync( + process.env.GITHUB_OUTPUT, + `build_args=${JSON.stringify(outputs)}`, + { encoding: 'utf8' }, + ) + //setOutput('build_args', JSON.stringify(outputs)) } try {