-
Notifications
You must be signed in to change notification settings - Fork 78
57 lines (50 loc) · 1.41 KB
/
yaml-scripts-demo.yaml
File metadata and controls
57 lines (50 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Yaml Scripts Demo
permissions:
contents: read
on:
workflow_dispatch:
inputs:
tag:
description: 'The tag name of @midscene/'
required: true
default: 'beta'
branch:
description: 'The branch to checkout'
required: false
default: 'main'
push:
branches:
- main
env:
TAG: ${{ github.event.inputs.tag || 'beta' }}
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch || 'main' }}
- name: Run script
id: run-script
env:
OPENAI_BASE_URL: ${{ secrets.QWEN_OPENAI_BASE_URL }}
OPENAI_API_KEY: ${{ secrets.QWEN_OPENAI_API_KEY }}
MIDSCENE_MODEL_NAME: 'qwen-vl-max-latest'
MIDSCENE_USE_QWEN_VL: 1
DEBUG: 'midscene:ai:profile:*'
run: |
cd yaml-scripts-demo
npm i -g @midscene/cli@${{ env.TAG }}
midscene --version
midscene ./midscene-scripts/
continue-on-error: true
- name: Upload output folder
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: Midscene Run Dump
path: ${{ github.workspace }}/yaml-scripts-demo/midscene_run/
- name: Check if script failed
if: steps.run-script.outcome == 'failure'
run: exit 1