Skip to content

Commit 457741c

Browse files
committed
try lesser token
1 parent 70c7490 commit 457741c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

dist/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37039,9 +37039,7 @@ async function updateFromSourceFlow(token, branch, autoMerge) {
3703937039
await exec.exec('git', ['add', '.'], { silent: true });
3704037040
await exec.exec('git', ['commit', '-m', 'Update API specifications with fern api update'], { silent: true });
3704137041
core.info(`Pushing changes to branch: ${branch}`);
37042-
const repoUrl = `https://x-access-token:${token}@github.com/${owner}/${repo}.git`;
37043-
await exec.exec('git', ['remote', 'set-url', 'origin', repoUrl]);
37044-
await exec.exec('git', ['push', '--force', '--verbose', 'origin', branch], { silent: false });
37042+
await exec.exec('git', ['push', '--verbose', 'origin', branch], { silent: false });
3704537043
if (!autoMerge) {
3704637044
const octokit = github.getOctokit(token);
3704737045
await createPR(octokit, owner, repo, branch, github.context.ref.replace('refs/heads/', ''), true);

src/sync.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ async function updateFromSourceFlow(token: string, branch: string, autoMerge: bo
8282
await exec.exec('git', ['commit', '-m', 'Update API specifications with fern api update'], { silent: true });
8383

8484
core.info(`Pushing changes to branch: ${branch}`);
85-
const repoUrl = `https://x-access-token:${token}@github.com/${owner}/${repo}.git`;
86-
await exec.exec('git', ['remote', 'set-url', 'origin', repoUrl]);
8785

88-
await exec.exec('git', ['push', '--force', '--verbose', 'origin', branch], { silent: false });
86+
await exec.exec('git', ['push', '--verbose', 'origin', branch], { silent: false });
8987

9088
if (!autoMerge) {
9189
const octokit = github.getOctokit(token);

0 commit comments

Comments
 (0)