From 2a5a23f87bce384aa6ca398661e825709a27d5a1 Mon Sep 17 00:00:00 2001 From: levalicious Date: Tue, 6 Feb 2024 00:57:53 -0500 Subject: [PATCH] hoiyah3 --- src/main.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index d38f966..2e4b0e0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,10 +20,12 @@ async function cli(command: string): Promise { } async function constructRepoURL(server: string, repository: string, ref: string, token: string): Promise { - + core.info('Helloooo2'); const purl = new URL(server); + core.info('Helloooo3'); let consurl: string = purl.protocol; + core.info('Helloooo4'); /* if (purl.password) { consurl += `:${purl.password}@`; @@ -33,8 +35,11 @@ async function constructRepoURL(server: string, repository: string, ref: string, core.info('Sad, I had to tag on the token manually'); } */ + core.info('Helloooo5'); consurl += purl.hostname; + core.info('Helloooo6'); consurl += `/${repository}` + core.info('Helloooo7'); return consurl; } @@ -45,6 +50,7 @@ async function constructRepoURL(server: string, repository: string, ref: string, */ export async function run(): Promise { try { + core.info('Helloooo0'); const repository: string = core.getInput('repository'); const ref: string = core.getInput('ref'); const token: string = core.getInput('token'); @@ -55,7 +61,7 @@ export async function run(): Promise { const path: string = core.getInput('path'); const serverurl: string = core.getInput('server-url'); - + core.info('Helloooo1'); const url = await constructRepoURL(serverurl, repository, ref, token); core.info(`URL: ${url}`);