We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89c79c6 commit 8baf566Copy full SHA for 8baf566
1 file changed
.github/workflows/performance-test.yml
@@ -230,8 +230,12 @@ jobs:
230
run: |
231
git config --local user.email "action@github.com"
232
git config --local user.name "GitHub Action"
233
+ BRANCH="${{ github.head_ref || github.ref_name }}"
234
+ # Fetch latest branch, reset to it, then apply only performance.md
235
+ cp performance.md /tmp/performance.md
236
+ git fetch origin "$BRANCH"
237
+ git reset --hard "origin/$BRANCH"
238
+ cp /tmp/performance.md performance.md
239
git add performance.md
240
git diff --staged --quiet || git commit -m "Update performance test results [skip ci]"
- BRANCH="${{ github.head_ref || github.ref_name }}"
- git pull --rebase origin "$BRANCH" || true
241
git push origin HEAD:"$BRANCH" || echo "Push failed — performance report not updated"
0 commit comments