Update README.md

This commit is contained in:
Sean Goedecke
2025-04-08 12:00:25 +10:00
committed by GitHub
parent efbbaa2667
commit 1a66a5968c
+17 -9
View File
@@ -14,16 +14,24 @@ your actions.
Create a workflow to use the AI inference action:
```yaml
steps:
- name: Test Local Action
id: inference
uses: actions/ai-inference@v1
with:
prompt: 'Hello!'
name: "AI inference"
on: workflow_dispatch
- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.response }}"
jobs:
inference:
permissions:
models: read
runs-on: ubuntu-latest
steps:
- name: Test Local Action
id: inference
uses: actions/ai-inference@v1
with:
prompt: 'Hello!'
- name: Print Output
id: output
run: echo "${{ steps.inference.outputs.response }}"
```
## Inputs