Skip to content

Commit b165e8d

Browse files
committed
chore: Update workflow to conditionally set backend file flags in .env
1 parent a72e7e4 commit b165e8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/Web.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
cache: "pnpm"
2626

2727
- name: UseFile
28-
run: sed -i 's/SD_BACKEND_FILE=false/SD_BACKEND_FILE=true/' .env &&
29-
curl -o public/mock.json http://80.158.108.251:8000/v2/components &&
28+
run: |
29+
grep -q 'SD_BACKEND_FILE=false' .env && sed -i 's/SD_BACKEND_FILE=false/SD_BACKEND_FILE=true/' .env
30+
grep -q 'SD_BACKEND_V2=false' .env && sed -i 's/SD_BACKEND_V2=false/SD_BACKEND_V2=true/' .env
31+
curl -o public/mock.json http://80.158.108.251:8000/v2/components
3032
curl -o public/event.json http://80.158.108.251:8000/v2/incidents
3133
3234
- name: Build

0 commit comments

Comments
 (0)