Skip to content

Commit 1a66a59

Browse files
authored
Update README.md
1 parent efbbaa2 commit 1a66a59

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

README.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,24 @@ your actions.
1414
Create a workflow to use the AI inference action:
1515

1616
```yaml
17-
steps:
18-
- name: Test Local Action
19-
id: inference
20-
uses: actions/ai-inference@v1
21-
with:
22-
prompt: 'Hello!'
23-
24-
- name: Print Output
25-
id: output
26-
run: echo "${{ steps.test-action.outputs.response }}"
17+
name: "AI inference"
18+
on: workflow_dispatch
19+
20+
jobs:
21+
inference:
22+
permissions:
23+
models: read
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Test Local Action
27+
id: inference
28+
uses: actions/ai-inference@v1
29+
with:
30+
prompt: 'Hello!'
31+
32+
- name: Print Output
33+
id: output
34+
run: echo "${{ steps.inference.outputs.response }}"
2735
```
2836
2937
## Inputs

0 commit comments

Comments
 (0)