mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
Log errors in check model (#6235)
This commit is contained in:
parent
1c965209a7
commit
74d76d34a4
@ -2,12 +2,14 @@ const exec = require('child_process').exec
|
|||||||
|
|
||||||
exec('git describe --tags `git rev-list --tags --max-count=1`', (err, stdout, stderr) => {
|
exec('git describe --tags `git rev-list --tags --max-count=1`', (err, stdout, stderr) => {
|
||||||
if (err !== null) {
|
if (err !== null) {
|
||||||
|
console.log('Error', err)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
const tag = stdout.trim()
|
const tag = stdout.trim()
|
||||||
console.log('Check changes for tag:', tag)
|
console.log('Check changes for tag:', tag)
|
||||||
exec(`git fetch --tags && git diff ${tag} --name-only`, (err, stdout, stderr) => {
|
exec(`git fetch --tags && git diff ${tag} --name-only`, (err, stdout, stderr) => {
|
||||||
if (err !== null) {
|
if (err !== null) {
|
||||||
|
console.log('Error', err)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
const changedFiles = stdout.trim().split('\n')
|
const changedFiles = stdout.trim().split('\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user