Added pullRequestNumber to the action's outputs (#167)

* feat: set pullRequesstNumber as action output

* chore: add changeset

* fix: feedback from pr review

* Update .changeset/long-mayflies-yell.md

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
This commit is contained in:
David Register
2022-04-07 19:10:26 +02:00
committed by GitHub
co-authored by Mateusz Burzyński
parent c7c59f0c6f
commit 993a0a090d
5 changed files with 40 additions and 4 deletions
+4 -1
View File
@@ -97,13 +97,16 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
return;
}
case hasChangesets:
await runVersion({
const { pullRequestNumber } = await runVersion({
script: getOptionalInput("version"),
githubToken,
prTitle: getOptionalInput("title"),
commitMessage: getOptionalInput("commit"),
hasPublishScript,
});
core.setOutput("pullRequestNumber", String(pullRequestNumber));
return;
}
})().catch((err) => {