Skip to content

Don't push results from eval workflow #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions .github/workflows/evaluate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -75,7 +72,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
Expand Down Expand Up @@ -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