fix: update to add the fork remote (#2010)
This commit is contained in:
parent
117616472f
commit
6354e6c542
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@ -2524,7 +2524,7 @@ const getParentSha = (_3) => __awaiter(void 0, [_3], void 0, function* ({ cwd })
|
||||
exports.getParentSha = getParentSha;
|
||||
const setForkRemote = (_4) => __awaiter(void 0, [_4], void 0, function* ({ cwd }) {
|
||||
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,
|
||||
silent: !core.isDebug()
|
||||
});
|
||||
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -747,7 +747,7 @@ export const getParentSha = async ({cwd}: {cwd: string}): Promise<string> => {
|
||||
export const setForkRemote = async ({cwd}: {cwd: string}): Promise<void> => {
|
||||
await exec.getExecOutput(
|
||||
'git',
|
||||
['remote', 'set-url', 'fork', github.context.payload.repository?.clone_url],
|
||||
['remote', 'add', 'fork', github.context.payload.repository?.clone_url],
|
||||
{
|
||||
cwd,
|
||||
silent: !core.isDebug()
|
||||
|
Loading…
x
Reference in New Issue
Block a user