소스 검색

check action

nameczz 4 년 전
부모
커밋
3eb1faaf93
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 0
      .github/workflows/check.yml
  2. 4 2
      checkInsight.js

+ 2 - 0
.github/workflows/check.yml

@@ -75,6 +75,8 @@ jobs:
           node-version: 12
 
       - name: Check insight status
+        env:
+          INSIGHT_URL: ${{ secrets.INSIGHT_URL }}
         run: |
           yarn add axios
           node checkInsight.js

+ 4 - 2
checkInsight.js

@@ -14,7 +14,8 @@ axios
     }
   })
   .then(err => {
-    throw new Error(err.message || '---- Server has some error ----');
+    console.log(err.message || '---- Server has some error ----');
+    process.exit();
   });
 
 axios
@@ -28,5 +29,6 @@ axios
     }
   })
   .catch(err => {
-    throw new Error(err.message || '---- Client has some error ----');
+    console.log(err.message || '---- Client has some error ----');
+    process.exit();
   });