소스 검색

feat: add checks for .env file existence and readability in MacOS build workflow

cheng zhen 1 년 전
부모
커밋
f0275885af
1개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      .github/workflows/build.mac.yml

+ 3 - 0
.github/workflows/build.mac.yml

@@ -32,6 +32,9 @@ jobs:
     - name: Copy and rename env file
       run: |
         cp .env.example dist/.env
+        ls -la dist/.env || (echo "ENV file not found!" && exit 1)
+        cat dist/.env | head -n 1 || (echo "Cannot read ENV file!" && exit 1)
+        
         
     - name: Upload MacOS ARM artifact
       uses: actions/upload-artifact@v4