mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
build: retrive git hash
This commit is contained in:
@@ -9,7 +9,7 @@ const __dirname = dirname(__filename);
|
|||||||
|
|
||||||
let commitHash = process.env.GIT_COMMIT || 'unknown';
|
let commitHash = process.env.GIT_COMMIT || 'unknown';
|
||||||
try {
|
try {
|
||||||
execSync('git rev-parse --short HEAD').toString('utf-8').trim();
|
commitHash = execSync('git rev-parse --short HEAD').toString('utf-8').trim();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Failed to get commit hash:', e);
|
console.error('Failed to get commit hash:', e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user