diff --git a/.github/workflows/automatic-updates.yml b/.github/workflows/automatic-updates.yml index 1717edf53d..c02a94b50b 100644 --- a/.github/workflows/automatic-updates.yml +++ b/.github/workflows/automatic-updates.yml @@ -16,6 +16,7 @@ jobs: uses: actions/github-script@v6 id: updt with: + result-encoding: string script: | const { default: script } = await import(`${process.env.GITHUB_WORKSPACE}/build-automation.mjs`); return script(github); @@ -28,8 +29,8 @@ jobs: author: "Node.js GitHub Bot " branch: update-branch base: main - commit-message: "feat: Node.js ${{ steps.updt.outputs.result.updatedVersionsString }}" - title: "feat: Node.js ${{ steps.updt.outputs.result.updatedVersionsString }}" + commit-message: "feat: Node.js ${{ steps.updt.outputs.result }}" + title: "feat: Node.js ${{ steps.updt.outputs.result }}" delete-branch: true team-reviewers: | @nodejs/docker diff --git a/build-automation.mjs b/build-automation.mjs index 3a8c538bec..d294326386 100644 --- a/build-automation.mjs +++ b/build-automation.mjs @@ -100,6 +100,6 @@ export default async function(github) { const { stdout } = (await exec(`git diff`)); console.log(stdout); - return { updatedVersions, updatedVersionsString: updatedVersions.join(', ') }; + return updatedVersions.join(', '); } }