Skip deleted file when updating release version in comments
This commit is contained in:
@ -22,7 +22,7 @@ const [ tag ] = run('git', 'tag')
|
|||||||
// Ordering tag → HEAD is important here.
|
// Ordering tag → HEAD is important here.
|
||||||
const files = run('git', 'diff', tag, 'HEAD', '--name-only', 'contracts/**/*.sol')
|
const files = run('git', 'diff', tag, 'HEAD', '--name-only', 'contracts/**/*.sol')
|
||||||
.split(/\r?\n/)
|
.split(/\r?\n/)
|
||||||
.filter(file => file && !file.match(/mock/i));
|
.filter(file => file && !file.match(/mock/i) && fs.existsSync(file));
|
||||||
|
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
const current = fs.readFileSync(file, 'utf8');
|
const current = fs.readFileSync(file, 'utf8');
|
||||||
|
|||||||
Reference in New Issue
Block a user