Skip to content

Commit 71d5a5e

Browse files
authored
fix(ci): Attempt to fix broken auto commit of benchmark results on a tagged release (#32)
1 parent 7e5a90b commit 71d5a5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
# On pull requests, check out the head ref so we can commit to it
2626
ref: ${{ github.head_ref }}
27+
fetch-depth: 0
2728

2829
- name: Install system dependencies
2930
run: |
@@ -72,6 +73,12 @@ jobs:
7273
echo "Running and Comparing Benchmarks..."
7374
python benches/run_benches.py
7475
76+
- name: Prepare for benchmark results commit
77+
if: startsWith(github.ref, 'refs/tags/')
78+
run: |
79+
git stash
80+
git checkout main
81+
git stash pop
7582
- name: Commit benchmark results
7683
if: startsWith(github.ref, 'refs/tags/')
7784
uses: stefanzweifel/git-auto-commit-action@v4

0 commit comments

Comments
 (0)