Skip to content

Commit 4b196ba

Browse files
feat(upgrade.js): Encode newlines in the upgrades output
1 parent 15a89b5 commit 4b196ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

actions/upgrade/upgrade.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ const changed = packages.filter(
5050
);
5151

5252
const upgrades = changed
53-
.map((pkg) => `${pkg}@${after[pkg].resolved}`)
54-
.join(" ");
53+
.map((pkg) => `${pkg}@${before[pkg].declared}: ${before[pkg].resolved} -> ${after[pkg].resolved}`)
54+
.join("%0A");
5555

5656
childProcess.execSync(`git status`, { stdio: "inherit" });
5757
console.log(`::set-output name=upgrades::${upgrades}`);
5858
console.log(`::set-output name=upgrade-count::${changed.length}`);
5959
console.log(`::set-output name=upgrade-strategy::${process.env.INPUT_LATEST === 'true' ? 'matching semver range' : 'latest'}`);
60-

0 commit comments

Comments
 (0)