mirror of
https://github.com/pre-commit/action.git
synced 2025-11-07 02:36:55 +00:00
Merge pull request #51 from ad-m/patch-1
Avoid update remote of repository
This commit is contained in:
commit
763fbafdff
1 changed files with 1 additions and 2 deletions
3
index.js
3
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']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue