Merge pull request #51 from ad-m/patch-1

Avoid update remote of repository
This commit is contained in:
Anthony Sottile
2020-10-09 18:02:13 -07:00
committed by GitHub

View File

@@ -78,8 +78,7 @@ async function main() {
await exec.exec('git', ['commit', '-am', 'pre-commit fixes']);
const url = addToken(pr.head.repo.clone_url, token);
await exec.exec('git', ['remote', 'set-url', 'origin', url]);
await exec.exec('git', ['push', 'origin', 'HEAD']);
await exec.exec('git', ['push', url, 'HEAD']);
});
}
}