diff --git a/README.md b/README.md index bdd528f..e569a2c 100644 --- a/README.md +++ b/README.md @@ -252,3 +252,4 @@ Output | Description -------|------------ `was_successful` | Whether or not the changes could be backported successfully to all targets. Either `true` or `false`. `was_successful_by_target` | Whether or not the changes could be backported successfully to all targets - broken down by target. Follows the pattern `{{label}}=true\|false`. +`successful_prs` | Space separated list of the newly created PRs. diff --git a/action.yml b/action.yml index cf0eaa7..2418ed8 100644 --- a/action.yml +++ b/action.yml @@ -96,6 +96,9 @@ outputs: description: > Whether or not the changes could be backported successfully to all targets - broken down by target. Follows the pattern '{{label}}=true|false'. + successful_prs: + description: > + Space separated list of the newly created PRs. runs: using: "node20" main: "dist/index.js" diff --git a/src/backport.ts b/src/backport.ts index ba8dd1c..959c7f3 100644 --- a/src/backport.ts +++ b/src/backport.ts @@ -527,7 +527,7 @@ export class Backport { ); core.setOutput(Output.wasSuccessfulByTarget, byTargetOutput); - const successPRsOutput = successPRs.join("\n"); + const successPRsOutput = successPRs.join(" "); core.setOutput(Output.successfulPRs, successPRsOutput); } }