hoiyah3
This commit is contained in:
1 file changed
+8
-2
+8
-2
@@ -20,10 +20,12 @@ async function cli(command: string): Promise<CLIOutput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function constructRepoURL(server: string, repository: string, ref: string, token: string): Promise<string> {
|
async function constructRepoURL(server: string, repository: string, ref: string, token: string): Promise<string> {
|
||||||
|
core.info('Helloooo2');
|
||||||
const purl = new URL(server);
|
const purl = new URL(server);
|
||||||
|
core.info('Helloooo3');
|
||||||
|
|
||||||
let consurl: string = purl.protocol;
|
let consurl: string = purl.protocol;
|
||||||
|
core.info('Helloooo4');
|
||||||
/*
|
/*
|
||||||
if (purl.password) {
|
if (purl.password) {
|
||||||
consurl += `:${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('Sad, I had to tag on the token manually');
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
core.info('Helloooo5');
|
||||||
consurl += purl.hostname;
|
consurl += purl.hostname;
|
||||||
|
core.info('Helloooo6');
|
||||||
consurl += `/${repository}`
|
consurl += `/${repository}`
|
||||||
|
core.info('Helloooo7');
|
||||||
|
|
||||||
return consurl;
|
return consurl;
|
||||||
}
|
}
|
||||||
@@ -45,6 +50,7 @@ async function constructRepoURL(server: string, repository: string, ref: string,
|
|||||||
*/
|
*/
|
||||||
export async function run(): Promise<void> {
|
export async function run(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
|
core.info('Helloooo0');
|
||||||
const repository: string = core.getInput('repository');
|
const repository: string = core.getInput('repository');
|
||||||
const ref: string = core.getInput('ref');
|
const ref: string = core.getInput('ref');
|
||||||
const token: string = core.getInput('token');
|
const token: string = core.getInput('token');
|
||||||
@@ -55,7 +61,7 @@ export async function run(): Promise<void> {
|
|||||||
const path: string = core.getInput('path');
|
const path: string = core.getInput('path');
|
||||||
const serverurl: string = core.getInput('server-url');
|
const serverurl: string = core.getInput('server-url');
|
||||||
|
|
||||||
|
core.info('Helloooo1');
|
||||||
const url = await constructRepoURL(serverurl, repository, ref, token);
|
const url = await constructRepoURL(serverurl, repository, ref, token);
|
||||||
|
|
||||||
core.info(`URL: ${url}`);
|
core.info(`URL: ${url}`);
|
||||||
|
|||||||
Reference in new issue
Block a user