You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:** Version v1.0.0 only supports `pull_request` events. To use `push` or `workflow_dispatch` events, please use `@v1` (which now points to v1.1.0+) or explicitly use `@v1.1.0`.
19
21
20
22
## Configuration
21
23
@@ -94,7 +96,7 @@ jobs:
94
96
${{ runner.os }}-promptfoo-
95
97
96
98
- name: Run promptfoo evaluation
97
-
uses: promptfoo/promptfoo-action@main
99
+
uses: promptfoo/promptfoo-action@v1
98
100
with:
99
101
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
100
102
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -222,7 +224,7 @@ jobs:
222
224
- uses: actions/checkout@v4
223
225
224
226
- name: Run promptfoo evaluation
225
-
uses: promptfoo/promptfoo-action@main
227
+
uses: promptfoo/promptfoo-action@v1
226
228
with:
227
229
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
228
230
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -349,7 +351,7 @@ jobs:
349
351
${{ runner.os }}-promptfoo-
350
352
351
353
- name: Run promptfoo evaluation
352
-
uses: promptfoo/promptfoo-action@main
354
+
uses: promptfoo/promptfoo-action@v1
353
355
with:
354
356
github-token: ${{ secrets.GITHUB_TOKEN }}
355
357
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
@@ -397,7 +399,7 @@ The action provides cache statistics as outputs:
397
399
```yaml
398
400
- name: Run evaluation
399
401
id: eval
400
-
uses: promptfoo/promptfoo-action@main
402
+
uses: promptfoo/promptfoo-action@v1
401
403
with:
402
404
github-token: ${{ secrets.GITHUB_TOKEN }}
403
405
config: 'promptfooconfig.yaml'
@@ -424,7 +426,7 @@ If caching isn't working as expected:
424
426
425
427
1. **Enable debug mode** to see cache hits/misses:
426
428
```yaml
427
-
- uses: promptfoo/promptfoo-action@main
429
+
- uses: promptfoo/promptfoo-action@v1
428
430
with:
429
431
debug: true
430
432
```
@@ -453,7 +455,7 @@ To enable sharing with authentication:
0 commit comments