fix: get correct commit message and PR title for auto PRs
This commit is contained in:
parent
60b12fd776
commit
7b418d1bc4
|
@ -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
|
||||
|
|
|
@ -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(', ');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue