Noi more docker build testing
This commit is contained in:
parent
68f698aea8
commit
4053fbad1e
2 changed files with 3 additions and 3 deletions
4
.github/workflows/docker-image.yml
vendored
4
.github/workflows/docker-image.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue