浏览代码

Skip deleted file when updating release version in comments

(cherry picked from commit a71caa28e76c1d732cfa31ef31284b22712ee4da)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Hadrien Croubois 3 年之前
父节点
当前提交
1a41a503e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/release/update-comment.js

+ 1 - 1
scripts/release/update-comment.js

@@ -22,7 +22,7 @@ const [ tag ] = run('git', 'tag')
 // Ordering tag → HEAD is important here.
 const files = run('git', 'diff', tag, 'HEAD', '--name-only', 'contracts/**/*.sol')
   .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) {
   const current = fs.readFileSync(file, 'utf8');