chore: use default output from action rather than manual output
This commit is contained in:
parent
62262f41d4
commit
64779cd47c
|
@ -18,7 +18,7 @@ jobs:
|
|||
with:
|
||||
script: |
|
||||
const { default: script } = await import(`${process.env.GITHUB_WORKSPACE}/build-automation.mjs`);
|
||||
await script(github);
|
||||
return script(github);
|
||||
|
||||
- name: Create update PR
|
||||
id: cpr
|
||||
|
@ -27,8 +27,8 @@ jobs:
|
|||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: update-branch
|
||||
base: main
|
||||
commit-message: "Update to ${{ steps.updt.outputs.updated-versions }}"
|
||||
title: "Update to ${{ steps.updt.outputs.updated-versions }}"
|
||||
commit-message: "Update to ${{ steps.updt.outputs.result.updatedVersions.join(', ') }}"
|
||||
title: "Update to ${{ steps.updt.outputs.result.updatedVersions.join(', ') }}"
|
||||
delete-branch: true
|
||||
team-reviewers: |
|
||||
@nodejs/docker
|
||||
|
|
|
@ -97,8 +97,9 @@ export default async function(github) {
|
|||
process.exit(0);
|
||||
}
|
||||
}
|
||||
console.log(`::set-output name=updated-versions::${updatedVersions.join(',')}`);
|
||||
const { stdout } = (await exec(`git diff`));
|
||||
console.log(stdout);
|
||||
|
||||
return { updatedVersions };
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue