瀏覽代碼

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

master
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

Loading…
取消
儲存