Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b3f88f

Browse files
Merge pull request #129 from Azure-Samples/evaltest9
Don't push results from eval workflow
2 parents f4bd72d + aca71a2 commit 4b3f88f

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

‎.github/workflows/evaluate.yaml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff 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: |
@@ -75,7 +72,7 @@ jobs:
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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /