File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 16
16
uses : actions/checkout@v4
17
17
18
18
- name : Run script
19
+ id : run-script
19
20
env :
20
21
OPENAI_BASE_URL : ${{ secrets.OPENAI_BASE_URL }}
21
22
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
@@ -24,10 +25,16 @@ jobs:
24
25
npm i pnpm -g
25
26
pnpm install
26
27
pnpm run e2e
28
+ continue-on-error : true
29
+
27
30
28
31
- name : Upload output folder
29
32
uses : actions/upload-artifact@v4
30
33
with :
31
34
if-no-files-found : error
32
35
name : Midscene Report
33
- path : ${{ github.workspace }}/${{ github.event.inputs.output_folder }}
36
+ path : ${{ github.workspace }}/${{ github.event.inputs.output_folder }}
37
+
38
+ - name : Check if script failed
39
+ if : steps.run-script.outcome == 'failure'
40
+ run : exit 1
Original file line number Diff line number Diff line change 16
16
uses : actions/checkout@v4
17
17
18
18
- name : Run script
19
+ id : run-script
19
20
env :
20
21
OPENAI_BASE_URL : ${{ secrets.OPENAI_BASE_URL }}
21
22
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
@@ -24,10 +25,15 @@ jobs:
24
25
npm i pnpm -g
25
26
pnpm install
26
27
pnpm run test
28
+ continue-on-error : true
27
29
28
30
- name : Upload output folder
29
31
uses : actions/upload-artifact@v4
30
32
with :
31
33
if-no-files-found : error
32
34
name : Midscene Report
33
- path : ${{ github.workspace }}/${{ github.event.inputs.output_folder }}
35
+ path : ${{ github.workspace }}/${{ github.event.inputs.output_folder }}
36
+
37
+ - name : Check if script failed
38
+ if : steps.run-script.outcome == 'failure'
39
+ run : exit 1
You can’t perform that action at this time.
0 commit comments