File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : CI
3+
4+ on :
5+ pull_request :
6+ paths : [action.yml, .github/workflows/ci.yml]
7+
8+ jobs :
9+ CI :
10+ runs-on : [ubuntu-24.04]
11+
12+ permissions :
13+ contents : read # Required to checkout repository.
14+ models : read # Required for model inference.
15+
16+ steps :
17+ - name : Echo context
18+ env :
19+ GH_JSON : ${{ toJson(github) }}
20+ run : echo "$GH_JSON"
21+
22+ - name : Checkout repository
23+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+ with :
25+ persist-credentials : false
26+
27+ - name : Inference request
28+ id : prompt
29+ uses : ./
30+ with :
31+ messages : ' [{"role": "user", "content": "Hello!"}]'
32+ model : " openai/o4-mini"
33+
34+ - name : Echo outputs
35+ continue-on-error : true
36+ run : |
37+ echo "response: ${{ steps.prompt.outputs.response }}"
38+ echo "response-raw: ${{ steps.prompt.outputs.response-raw }}"
You can’t perform that action at this time.
0 commit comments