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
|
uses: actions/github-script@v6
|
||||||
id: updt
|
id: updt
|
||||||
with:
|
with:
|
||||||
|
result-encoding: string
|
||||||
script: |
|
script: |
|
||||||
const { default: script } = await import(`${process.env.GITHUB_WORKSPACE}/build-automation.mjs`);
|
const { default: script } = await import(`${process.env.GITHUB_WORKSPACE}/build-automation.mjs`);
|
||||||
return script(github);
|
return script(github);
|
||||||
|
@ -28,8 +29,8 @@ jobs:
|
||||||
author: "Node.js GitHub Bot <nodejs-github-bot@users.noreply.github.com>"
|
author: "Node.js GitHub Bot <nodejs-github-bot@users.noreply.github.com>"
|
||||||
branch: update-branch
|
branch: update-branch
|
||||||
base: main
|
base: main
|
||||||
commit-message: "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.updatedVersionsString }}"
|
title: "feat: Node.js ${{ steps.updt.outputs.result }}"
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
team-reviewers: |
|
team-reviewers: |
|
||||||
@nodejs/docker
|
@nodejs/docker
|
||||||
|
|
|
@ -100,6 +100,6 @@ export default async function(github) {
|
||||||
const { stdout } = (await exec(`git diff`));
|
const { stdout } = (await exec(`git diff`));
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
|
|
||||||
return { updatedVersions, updatedVersionsString: updatedVersions.join(', ') };
|
return updatedVersions.join(', ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue