chore: build
This commit is contained in:
parent
97408b0853
commit
619278d2f5
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -1153,7 +1153,7 @@ const urlHelper = __importStar(__nccwpck_require__(9437));
|
|||
function getSource(settings) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
// Repository URL
|
||||
core.info(`Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}`);
|
||||
core.info(`FOCS ver Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}`);
|
||||
const repositoryUrl = urlHelper.getFetchUrl(settings);
|
||||
// Remove conflicting file path
|
||||
if (fsHelper.fileExistsSync(settings.repositoryPath)) {
|
||||
|
@ -2371,10 +2371,10 @@ function getFetchUrl(settings) {
|
|||
const encodedOwner = encodeURIComponent(settings.repositoryOwner);
|
||||
const encodedName = encodeURIComponent(settings.repositoryName);
|
||||
if (settings.sshKey) {
|
||||
return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
|
||||
return `git@${serviceUrl.hostname}:2222/${encodedOwner}/${encodedName}.git`;
|
||||
}
|
||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
|
||||
return `${serviceUrl.origin}/git/${encodedOwner}/${encodedName}`;
|
||||
}
|
||||
exports.getFetchUrl = getFetchUrl;
|
||||
function getServerUrl(url) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user