Keep env var output for backwards compat

This commit is contained in:
Peter Evans 2020-07-16 19:42:19 +09:00
parent 3c32fac1fe
commit 5429e57002
4 changed files with 15 additions and 9 deletions

5
dist/index.js vendored
View file

@ -8084,8 +8084,11 @@ class GitHubHelper {
const headBranch = `${headRepo.owner.login}:${inputs.branch}`;
// Create or update the pull request
const pullNumber = yield this.createOrUpdate(inputs, baseRepository, headBranch);
// Set output
// Set outputs
core.startGroup('Setting outputs');
core.setOutput('pull-request-number', pullNumber);
core.exportVariable('PULL_REQUEST_NUMBER', pullNumber);
core.endGroup();
// Set milestone, labels and assignees
const updateIssueParams = {};
if (inputs.milestone) {