[CI] test built
This commit is contained in:
parent
ff0beed1b2
commit
91101c12d0
2 changed files with 7 additions and 0 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -315,6 +315,12 @@ function createPullRequest(inputs) {
|
||||||
if (branchRemoteName == 'origin' && base == inputs.branch) {
|
if (branchRemoteName == 'origin' && base == inputs.branch) {
|
||||||
throw new Error(`The 'base' and 'branch' for a pull request must be different branches. Unable to continue.`);
|
throw new Error(`The 'base' and 'branch' for a pull request must be different branches. Unable to continue.`);
|
||||||
}
|
}
|
||||||
|
// For self-hosted runners the repository state persists between runs.
|
||||||
|
// This command prunes the stale remote ref when the pull request branch was
|
||||||
|
// deleted after being merged or closed. Without this the push using
|
||||||
|
// '--force-with-lease' fails due to "stale info."
|
||||||
|
// https://github.com/peter-evans/create-pull-request/issues/633
|
||||||
|
yield git.exec(['remote', 'prune', branchRemoteName]);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
// Apply the branch suffix if set
|
// Apply the branch suffix if set
|
||||||
if (inputs.branchSuffix) {
|
if (inputs.branchSuffix) {
|
||||||
|
|
1
report.txt
Normal file
1
report.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
1606189036
|
Loading…
Add table
Add a link
Reference in a new issue