Skip to content

Commit 763fbaf

Browse files
authored
Merge pull request #51 from ad-m/patch-1
Avoid update remote of repository
2 parents e7c888c + ca13fd4 commit 763fbaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ async function main() {
7878

7979
await exec.exec('git', ['commit', '-am', 'pre-commit fixes']);
8080
const url = addToken(pr.head.repo.clone_url, token);
81-
await exec.exec('git', ['remote', 'set-url', 'origin', url]);
82-
await exec.exec('git', ['push', 'origin', 'HEAD']);
81+
await exec.exec('git', ['push', url, 'HEAD']);
8382
});
8483
}
8584
}

0 commit comments

Comments
 (0)