fix(ci/benchmark): Mitigate VCS conflicts with files in data branch

`agbenchmark` currently creates files like success_rate.json in the base REPORTS_FOLDER, which causes conflicts in the last step of the benchmark workflow.
To prevent issues, these files must be removed prior to switching to the data branch.
This commit is contained in:
Reinier van der Leer
2024-02-17 18:09:44 +01:00
parent 959377f54c
commit 784e2bbb1c

View File

@@ -68,6 +68,9 @@ jobs:
- name: Push reports to data branch
run: |
# BODGE: Remove success_rate.json and regression_tests.json to avoid conflicts on checkout
rm ${{ env.REPORTS_FOLDER }}/*.json
git config --global user.name 'GitHub Actions'
git config --global user.email 'github-actions@agpt.co'
git fetch origin ${{ env.REPORTS_BRANCH }}:${{ env.REPORTS_BRANCH }} \