Skip to content

Commit 25f213c

Browse files
committed
enh: allow force up
1 parent a9e416c commit 25f213c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

infra/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import * as path from 'node:path';
44
export const today = () => new Date().toISOString().split('T')[0];
55

66
export function getGitCommitHash(): string {
7+
const skip = process.env.FORCE === 'true';
8+
if (skip) return Date.now().toString(); // Use timestamp to force a new deployment without relying on git
9+
710
const branch = fs.readFileSync('../.git/HEAD', 'utf-8').trim();
811
if (branch.startsWith('ref:')) {
912
const refPath = path.join('../.git', branch.slice(5));

0 commit comments

Comments
 (0)