chore: use default output from action rather than manual output

This commit is contained in:
Simen Bekkhus 2022-03-11 07:35:38 +01:00
parent 62262f41d4
commit 64779cd47c
2 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@ jobs:
with: with:
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`);
await script(github); return script(github);
- name: Create update PR - name: Create update PR
id: cpr id: cpr
@ -27,8 +27,8 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
branch: update-branch branch: update-branch
base: main base: main
commit-message: "Update to ${{ steps.updt.outputs.updated-versions }}" commit-message: "Update to ${{ steps.updt.outputs.result.updatedVersions.join(', ') }}"
title: "Update to ${{ steps.updt.outputs.updated-versions }}" title: "Update to ${{ steps.updt.outputs.result.updatedVersions.join(', ') }}"
delete-branch: true delete-branch: true
team-reviewers: | team-reviewers: |
@nodejs/docker @nodejs/docker

View File

@ -97,8 +97,9 @@ export default async function(github) {
process.exit(0); process.exit(0);
} }
} }
console.log(`::set-output name=updated-versions::${updatedVersions.join(',')}`);
const { stdout } = (await exec(`git diff`)); const { stdout } = (await exec(`git diff`));
console.log(stdout); console.log(stdout);
return { updatedVersions };
} }
} }