Fix commit link kinda, breaks docker builds tho
This commit is contained in:
parent
5153e2deef
commit
eb3fb830b8
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ const buttonFormat = "gif";
|
||||||
import { Icon } from "astro-icon/components";
|
import { Icon } from "astro-icon/components";
|
||||||
import { execSync } from "node:child_process";
|
import { execSync } from "node:child_process";
|
||||||
|
|
||||||
const commitURL = import.meta.env.PUBLIC_COMMIT === "" ? "" : `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -1 --pretty="format:%H"`)}`;
|
const commitURL = `https://git.aria.coffee/BuyMyAria/aria.coffee/commit/${execSync(`git log -1 --pretty="format:%H"`)}`;
|
||||||
const COMMIT = import.meta.env.PUBLIC_COMMIT === "" ? "Docker Build!" : `<a href=${commitURL} target="_blank">${execSync(`git log -1 --pretty="format:%h"`)}</a>`;
|
const COMMIT = `<a href=${commitURL} target="_blank">${execSync(`git log -1 --pretty="format:%h"`)}</a>`;
|
||||||
---
|
---
|
||||||
|
|
||||||
<hr class="h-1" style="" />
|
<hr class="h-1" style="" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue