浏览代码

fix(ci) fix checking if the git repository is clean

j8
Saúl Ibarra Corretgé 4 年前
父节点
当前提交
eb3295cedd
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      .github/workflows/ci.yml

+ 2
- 1
.github/workflows/ci.yml 查看文件

12
       with:
12
       with:
13
         node-version: '12.x'
13
         node-version: '12.x'
14
     - run: npm install
14
     - run: npm install
15
-    - run: git status -s --untracked-files=no
15
+    - name: Check if the git repository is clean
16
+      run: exit $( git status --porcelain --untracked-files=no | head -255 | wc -l )
16
     - run: npm run lint
17
     - run: npm run lint
17
     - run: make
18
     - run: make

正在加载...
取消
保存