Skip to content

Commit cfd412e

Browse files
committed
fix: debug workflow
1 parent 3065ec5 commit cfd412e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/playwright-demo.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
uses: actions/checkout@v4
1717

1818
- name: Run script
19+
id: run-script
1920
env:
2021
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}
2122
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
@@ -24,10 +25,16 @@ jobs:
2425
npm i pnpm -g
2526
pnpm install
2627
pnpm run e2e
28+
continue-on-error: true
29+
2730

2831
- name: Upload output folder
2932
uses: actions/upload-artifact@v4
3033
with:
3134
if-no-files-found: error
3235
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

.github/workflows/puppeteer-demo.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
uses: actions/checkout@v4
1717

1818
- name: Run script
19+
id: run-script
1920
env:
2021
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}
2122
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
@@ -24,10 +25,15 @@ jobs:
2425
npm i pnpm -g
2526
pnpm install
2627
pnpm run test
28+
continue-on-error: true
2729

2830
- name: Upload output folder
2931
uses: actions/upload-artifact@v4
3032
with:
3133
if-no-files-found: error
3234
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

0 commit comments

Comments
 (0)