5
0
Fork 0
mirror of https://github.com/pre-commit/action.git synced 2025-11-07 10:46:56 +00:00

Avoid update remote of repository

This commit is contained in:
Adam Dobrawy 2020-10-10 01:57:53 +02:00 committed by GitHub
parent e7c888c0db
commit ca13fd436e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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']);
});
}
}