mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-26 15:16:59 +00:00
build: retrive git hash
This commit is contained in:
1 parent
e9480ce6a4
commit
88cfbcd337
1 file changed
+1
-1
@@ -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