From 4053fbad1ea7087ea6e1ba51a3bdea71386ab1ae Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 10 Mar 2025 22:36:21 +1100 Subject: [PATCH] Noi more docker build testing --- .github/workflows/docker-image.yml | 4 ++-- remark-modified-time.mjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 10be8bf..a347342 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,11 +2,11 @@ name: Docker Image CI on: push: - branches: [ "main" ] + branches: [ ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] pull_request: - branches: [ "main" ] + branches: [ ] env: diff --git a/remark-modified-time.mjs b/remark-modified-time.mjs index 8b93e00..b0793c7 100644 --- a/remark-modified-time.mjs +++ b/remark-modified-time.mjs @@ -3,7 +3,7 @@ import { execSync } from "node:child_process"; export function remarkModifiedTime() { return (tree, file) => { const filepath = file.history[0]; - const result = typeof import.meta.env.PUBLIC_COMMIT === "undefined" ? "Unavailable" : execSync(`git log -1 --pretty="format:%cI" "${filepath}"`); + const result = execSync(`git log -1 --pretty="format:%cI" "${filepath}"`); file.data.astro.frontmatter.lastModified = result.toString(); }; } \ No newline at end of file