[CI] test built

This commit is contained in:
peter-evans 2020-08-19 08:27:17 +00:00 committed by GitHub
parent 2570a753e0
commit 462970b062
2 changed files with 12 additions and 8 deletions

3
dist/index.js vendored
View file

@ -1393,6 +1393,7 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
core.info(`Updated branch '${branch}'`); core.info(`Updated branch '${branch}'`);
} }
else { else {
result.action = 'not-updated';
core.info(`Branch '${branch}' is even with its remote and will not be updated`); core.info(`Branch '${branch}' is even with its remote and will not be updated`);
} }
// Check if the pull request branch is ahead of the base // Check if the pull request branch is ahead of the base
@ -7718,6 +7719,7 @@ function createPullRequest(inputs) {
`HEAD:refs/heads/${inputs.branch}` `HEAD:refs/heads/${inputs.branch}`
]); ]);
core.endGroup(); core.endGroup();
}
// Set the base. It would have been '' if not specified as an input // Set the base. It would have been '' if not specified as an input
inputs.base = result.base; inputs.base = result.base;
if (result.hasDiffWithBase) { if (result.hasDiffWithBase) {
@ -7726,6 +7728,7 @@ function createPullRequest(inputs) {
} }
else { else {
// If there is no longer a diff with the base delete the branch // If there is no longer a diff with the base delete the branch
if (['updated', 'not-updated'].includes(result.action)) {
core.info(`Branch '${inputs.branch}' no longer differs from base branch '${inputs.base}'`); core.info(`Branch '${inputs.branch}' no longer differs from base branch '${inputs.base}'`);
core.info(`Closing pull request and deleting branch '${inputs.branch}'`); core.info(`Closing pull request and deleting branch '${inputs.branch}'`);
yield git.push([ yield git.push([

1
report.txt Normal file
View file

@ -0,0 +1 @@
1597825637