Skip to content

Commit dfb2c93

Browse files
Fix Benchmark CI: allow baseline update to fail on protected branch
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e0dc2a3 commit dfb2c93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/benchmark.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,15 @@ jobs:
104104
105105
- name: Update baseline on main
106106
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
107+
continue-on-error: true
107108
run: |
108109
if [ -f /tmp/benchmark-new-baseline.json ]; then
109110
cp /tmp/benchmark-new-baseline.json packages/benchmarks/results/baseline.json
110111
git config user.name "github-actions[bot]"
111112
git config user.email "github-actions[bot]@users.noreply.github.com"
112113
git add packages/benchmarks/results/baseline.json packages/benchmarks/results/history/
113114
git diff --cached --quiet || git commit -m "chore: update benchmark baseline [skip ci]"
114-
git push
115+
git push || echo "::warning::Could not push baseline update (branch protection). Baseline will be updated on next unprotected push."
115116
fi
116117
117118
- name: Fail on regression

0 commit comments

Comments
 (0)