itizawa 6 лет назад
Родитель
Сommit
59d49ec886
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      .github/workflows/ci.yml

+ 4 - 0
.github/workflows/ci.yml

@@ -194,6 +194,10 @@ jobs:
         isCompactMode: true
         url: ${{ secrets.SLACK_WEBHOOK_URL }}
 
+    - name: Check whether workspace is clean
+      run: |
+        STATUS=`git status --porcelain`
+        if [ -z "$STATUS" ]; then exit 0; else exit 1; fi
 
   build-prod:
     runs-on: ubuntu-latest