update to deno
This commit is contained in:
@@ -9,15 +9,17 @@ export class SzciEnv {
|
||||
|
||||
constructor(szciRefArg: Szci) {
|
||||
this.szciRef = szciRefArg;
|
||||
if (!this.repoString && Deno.env.get("GITLAB_CI")) {
|
||||
this.repoString = Deno.env.get("CI_REPOSITORY_URL");
|
||||
|
||||
// Determine repo string from environment
|
||||
let repoUrl: string | undefined;
|
||||
if (Deno.env.get("GITLAB_CI")) {
|
||||
repoUrl = Deno.env.get("CI_REPOSITORY_URL");
|
||||
}
|
||||
if (!this.repoString && Deno.env.get("NPMCI_COMPUTED_REPOURL")) {
|
||||
this.repoString = Deno.env.get("NPMCI_COMPUTED_REPOURL");
|
||||
}
|
||||
if (!this.repoString) {
|
||||
this.repoString = 'https://undefined:undefined@github.com/undefined/undefined.git';
|
||||
if (!repoUrl && Deno.env.get("SZCI_COMPUTED_REPOURL")) {
|
||||
repoUrl = Deno.env.get("SZCI_COMPUTED_REPOURL");
|
||||
}
|
||||
|
||||
this.repoString = repoUrl || 'https://undefined:undefined@github.com/undefined/undefined.git';
|
||||
this.repo = new plugins.smartstring.GitRepo(this.repoString);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user