Skip to content

Commit d40c2c8

Browse files
authored
Merge pull request #1691 from SimenB/correct-script-output
2 parents 60b12fd + 7b418d1 commit d40c2c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/automatic-updates.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
uses: actions/github-script@v6
1717
id: updt
1818
with:
19+
result-encoding: string
1920
script: |
2021
const { default: script } = await import(`${process.env.GITHUB_WORKSPACE}/build-automation.mjs`);
2122
return script(github);
@@ -28,8 +29,8 @@ jobs:
2829
author: "Node.js GitHub Bot <nodejs-github-bot@users.noreply.github.com>"
2930
branch: update-branch
3031
base: main
31-
commit-message: "feat: Node.js ${{ steps.updt.outputs.result.updatedVersionsString }}"
32-
title: "feat: Node.js ${{ steps.updt.outputs.result.updatedVersionsString }}"
32+
commit-message: "feat: Node.js ${{ steps.updt.outputs.result }}"
33+
title: "feat: Node.js ${{ steps.updt.outputs.result }}"
3334
delete-branch: true
3435
team-reviewers: |
3536
@nodejs/docker

build-automation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ export default async function(github) {
100100
const { stdout } = (await exec(`git diff`));
101101
console.log(stdout);
102102

103-
return { updatedVersions, updatedVersionsString: updatedVersions.join(', ') };
103+
return updatedVersions.join(', ');
104104
}
105105
}

0 commit comments

Comments
 (0)