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