Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit f027588

Browse files
author
cheng zhen
committed
feat: add checks for .env file existence and readability in MacOS build workflow
1 parent c3e4ef3 commit f027588

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: .github/workflows/build.mac.yml

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- name: Copy and rename env file
3333
run: |
3434
cp .env.example dist/.env
35+
ls -la dist/.env || (echo "ENV file not found!" && exit 1)
36+
cat dist/.env | head -n 1 || (echo "Cannot read ENV file!" && exit 1)
37+
3538
3639
- name: Upload MacOS ARM artifact
3740
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)