From ca13fd436e8badc050a14ccc40b98d7a7ee8bf3c Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Sat, 10 Oct 2020 01:57:53 +0200 Subject: [PATCH] Avoid update remote of repository --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index bbb6a43..9adf9a1 100644 --- a/index.js +++ b/index.js @@ -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']); }); } }