fix: get correct commit message and PR title for auto PRs

This commit is contained in:
Simen Bekkhus 2022-04-07 14:51:11 +02:00
parent 60b12fd776
commit 7b418d1bc4
2 changed files with 4 additions and 3 deletions

View File

@ -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 <nodejs-github-bot@users.noreply.github.com>"
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

View File

@ -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(', ');
}
}