From 47fc2b24e7642d640bfb2e4dcd00876d91c4c7eb Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Thu, 24 Oct 2024 16:20:26 +0000 Subject: [PATCH 1/2] Wording change --- .github/workflows/evaluate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/evaluate.yaml b/.github/workflows/evaluate.yaml index 4e271467..57c23d8e 100644 --- a/.github/workflows/evaluate.yaml +++ b/.github/workflows/evaluate.yaml @@ -75,7 +75,7 @@ jobs: - name: Set password for postgres user run: sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'root'" - - name: Create vector extension + - name: Create pgvector extension run: sudo -u postgres psql -c 'CREATE EXTENSION vector' - name: Install python From aca71a2545afc21b7c4660c7dfdc7448d6a40cd9 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Thu, 24 Oct 2024 16:36:02 +0000 Subject: [PATCH 2/2] Go back to not pushing results, we dont have permission --- .github/workflows/evaluate.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/evaluate.yaml b/.github/workflows/evaluate.yaml index 57c23d8e..fdac800b 100644 --- a/.github/workflows/evaluate.yaml +++ b/.github/workflows/evaluate.yaml @@ -56,13 +56,10 @@ jobs: body: "Starting evaluation! Check the Actions tab for progress, or wait for a comment with the results." }) - - name: Checkout default branch + - name: Checkout pull request uses: actions/checkout@v4 - - - name: Checkout actual pull request - run: gh pr checkout ${{ github.event.issue.number }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + ref: refs/pull/${{ github.event.issue.number }}/head - name: Install pgvector run: | @@ -195,12 +192,3 @@ jobs: repo: context.repo.repo, body: `${summary}\n\n[Check the workflow run for more details](${actionsUrl}).` }) - - - name: Commit and push eval results - if: ${{ success() }} - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git add evals/results/pr${{ github.event.issue.number }} - git commit -m "Add evaluation results for PR #${{ github.event.issue.number }}" - git push