Skip to content

Commit fc10322

Browse files
committed
PR #
1 parent 80f6c52 commit fc10322

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/evaluate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
137137
- name: Evaluate local RAG flow
138138
run: |
139-
PR_NUMBER=${{ github.event.pull_request.number }}
139+
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; /^refs\/pull/ { print $3 }')
140140
python evals/evaluate.py --targeturl=http://127.0.0.1:8000/chat --numquestions=2 --resultsdir=results/pr$PR_NUMBER
141141
142142
- name: Upload server logs as build artifact
@@ -155,7 +155,7 @@ jobs:
155155
uses: actions/upload-artifact@v4
156156
with:
157157
name: eval_result
158-
path: ./evals/results/pr${{ github.event.pull_request.number }}
158+
path: ./evals/results/pr$PR_NUMBER
159159

160160
- name: GitHub Summary Step
161161
if: ${{ success() }}

0 commit comments

Comments
 (0)