Skip to content

Commit 5dabf14

Browse files
testing..
1 parent 318967c commit 5dabf14

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,11 @@ async function updateReadme(data) {
568568
committerEmail,
569569
]);
570570
await exec('git', ['config', '--global', 'user.name', committerUsername]);
571+
await exec('git', ['pull', 'https://github.com/abhisheknaiidu/abhisheknaiidu']);
571572
await exec('git', ['add', README_FILE_PATH]);
572573
await exec('git', ['commit', '-m', commitMessage]);
573-
await exec('git', ['remote', 'add', 'origin', 'https://github.com/abhisheknaiidu/abhisheknaiidu']);
574-
await exec('git', ['fetch', '--unshallow', 'origin']);
575-
await exec('git', ['push', '--force', 'origin']);
574+
// await exec('git', ['fetch', '--unshallow', 'origin']);
575+
await exec('git', ['push', '--force']);
576576
core.info("Readme updated successfully.");
577577
// Making job fail if one of the source fails
578578
process.exit(jobFailFlag ? 1 : 0);

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ async function updateReadme(data) {
115115
committerEmail,
116116
]);
117117
await exec('git', ['config', '--global', 'user.name', committerUsername]);
118+
await exec('git', ['pull', 'https://github.com/abhisheknaiidu/abhisheknaiidu']);
118119
await exec('git', ['add', README_FILE_PATH]);
119120
await exec('git', ['commit', '-m', commitMessage]);
120-
await exec('git', ['remote', 'add', 'origin', 'https://github.com/abhisheknaiidu/abhisheknaiidu']);
121-
await exec('git', ['fetch', '--unshallow', 'origin']);
122-
await exec('git', ['push', '--force', 'origin']);
121+
// await exec('git', ['fetch', '--unshallow', 'origin']);
122+
await exec('git', ['push', '--force']);
123123
core.info("Readme updated successfully.");
124124
// Making job fail if one of the source fails
125125
process.exit(jobFailFlag ? 1 : 0);

0 commit comments

Comments
 (0)