Skip to content

Commit a55cbf2

Browse files
authored
Merge pull request #1665 from SimenB/no-manual-output
2 parents a566006 + 8eef34c commit a55cbf2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/automatic-updates.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
script: |
2020
const { default: script } = await import(`${process.env.GITHUB_WORKSPACE}/build-automation.mjs`);
21-
await script(github);
21+
return script(github);
2222
2323
- name: Create update PR
2424
id: cpr
@@ -27,8 +27,8 @@ jobs:
2727
token: ${{ secrets.GITHUB_TOKEN }}
2828
branch: update-branch
2929
base: main
30-
commit-message: "Update to ${{ steps.updt.outputs.updated-versions }}"
31-
title: "Update to ${{ steps.updt.outputs.updated-versions }}"
30+
commit-message: "feat: Node.js ${{ steps.updt.outputs.result.updatedVersions.join(', ') }}"
31+
title: "feat: Node.js ${{ steps.updt.outputs.result.updatedVersions.join(', ') }}"
3232
delete-branch: true
3333
team-reviewers: |
3434
@nodejs/docker

build-automation.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ export default async function(github) {
9797
process.exit(0);
9898
}
9999
}
100-
console.log(`::set-output name=updated-versions::${updatedVersions.join(',')}`);
101100
const { stdout } = (await exec(`git diff`));
102101
console.log(stdout);
102+
103+
return { updatedVersions };
103104
}
104105
}

0 commit comments

Comments
 (0)