fix: update to add the fork remote (#2010)

This commit is contained in:
Tonye Jack 2024-03-26 12:28:16 -06:00 committed by GitHub
parent 117616472f
commit 6354e6c542
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

2
dist/index.js generated vendored
View File

@ -2524,7 +2524,7 @@ const getParentSha = (_3) => __awaiter(void 0, [_3], void 0, function* ({ cwd })
exports.getParentSha = getParentSha; exports.getParentSha = getParentSha;
const setForkRemote = (_4) => __awaiter(void 0, [_4], void 0, function* ({ cwd }) { const setForkRemote = (_4) => __awaiter(void 0, [_4], void 0, function* ({ cwd }) {
var _5; var _5;
yield exec.getExecOutput('git', ['remote', 'set-url', 'fork', (_5 = github.context.payload.repository) === null || _5 === void 0 ? void 0 : _5.clone_url], { yield exec.getExecOutput('git', ['remote', 'add', 'fork', (_5 = github.context.payload.repository) === null || _5 === void 0 ? void 0 : _5.clone_url], {
cwd, cwd,
silent: !core.isDebug() silent: !core.isDebug()
}); });

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -747,7 +747,7 @@ export const getParentSha = async ({cwd}: {cwd: string}): Promise<string> => {
export const setForkRemote = async ({cwd}: {cwd: string}): Promise<void> => { export const setForkRemote = async ({cwd}: {cwd: string}): Promise<void> => {
await exec.getExecOutput( await exec.getExecOutput(
'git', 'git',
['remote', 'set-url', 'fork', github.context.payload.repository?.clone_url], ['remote', 'add', 'fork', github.context.payload.repository?.clone_url],
{ {
cwd, cwd,
silent: !core.isDebug() silent: !core.isDebug()