mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2025-05-23 16:27:41 +08:00
build: retrive git hash
This commit is contained in:
parent
e9480ce6a4
commit
88cfbcd337
@ -9,7 +9,7 @@ const __dirname = dirname(__filename);
|
||||
|
||||
let commitHash = process.env.GIT_COMMIT || 'unknown';
|
||||
try {
|
||||
execSync('git rev-parse --short HEAD').toString('utf-8').trim();
|
||||
commitHash = execSync('git rev-parse --short HEAD').toString('utf-8').trim();
|
||||
} catch (e) {
|
||||
console.error('Failed to get commit hash:', e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user