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
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -496,3 +496,34 @@ To explicitly disable sharing:
496
496
## Minimal Output
497
497
498
498
To reduce console output in CI, set `no-table: true` and `no-progress-bar: true` in your action configuration.
499
+
500
+
## Persisting Results as Artifacts
501
+
502
+
The action writes evaluation results to `output.json` in the working directory. You can upload this as a GitHub Action artifact to preserve results beyond the 2-week shareable URL expiration:
503
+
504
+
```yaml
505
+
jobs:
506
+
evaluate:
507
+
runs-on: ubuntu-latest
508
+
permissions:
509
+
contents: read
510
+
pull-requests: write
511
+
steps:
512
+
- uses: actions/checkout@v4
513
+
514
+
- name: Run promptfoo evaluation
515
+
uses: promptfoo/promptfoo-action@v1
516
+
with:
517
+
github-token: ${{ secrets.GITHUB_TOKEN }}
518
+
config: 'promptfooconfig.yaml'
519
+
520
+
- name: Upload results
521
+
uses: actions/upload-artifact@v4
522
+
if: always() # Upload even if evaluation fails
523
+
with:
524
+
name: promptfoo-results
525
+
path: output.json
526
+
retention-days: 90
527
+
```
528
+
529
+
Artifacts are retained for up to 90 days and can be downloaded from the GitHub Actions UI or via the GitHub API.
0 commit comments