File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,10 @@ jobs:
5656 body: "Starting evaluation! Check the Actions tab for progress, or wait for a comment with the results."
5757 })
5858
59- - name : Checkout default branch
59+ - name : Checkout pull request
6060 uses : actions/checkout@v4
61-
62- - name : Checkout actual pull request
63- run : gh pr checkout ${{ github.event.issue.number }}
64- env :
65- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61+ with :
62+ ref : refs/pull/${{ github.event.issue.number }}/head
6663
6764 - name : Install pgvector
6865 run : |
7572 - name : Set password for postgres user
7673 run : sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'root'"
7774
78- - name : Create vector extension
75+ - name : Create pgvector extension
7976 run : sudo -u postgres psql -c 'CREATE EXTENSION vector'
8077
8178 - name : Install python
@@ -195,12 +192,3 @@ jobs:
195192 repo: context.repo.repo,
196193 body: `${summary}\n\n[Check the workflow run for more details](${actionsUrl}).`
197194 })
198-
199- - name : Commit and push eval results
200- if : ${{ success() }}
201- run : |
202- git config --global user.name "github-actions[bot]"
203- git config --global user.email "github-actions[bot]@users.noreply.github.com"
204- git add evals/results/pr${{ github.event.issue.number }}
205- git commit -m "Add evaluation results for PR #${{ github.event.issue.number }}"
206- git push
You can’t perform that action at this time.
0 commit comments