Skip to content

Commit 89c79c6

Browse files
committed
fix workflow
1 parent b2cd477 commit 89c79c6

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/performance-test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,17 +225,13 @@ jobs:
225225
echo "" >> $GITHUB_STEP_SUMMARY
226226
cat performance.md >> $GITHUB_STEP_SUMMARY
227227
228-
- name: Commit Performance Report
228+
- name: Commit and Push Performance Report
229229
if: always()
230230
run: |
231231
git config --local user.email "action@github.com"
232232
git config --local user.name "GitHub Action"
233233
git add performance.md
234234
git diff --staged --quiet || git commit -m "Update performance test results [skip ci]"
235-
236-
- name: Push Performance Report
237-
if: always()
238-
uses: ad-m/github-push-action@master
239-
with:
240-
github_token: ${{ secrets.GITHUB_TOKEN }}
241-
branch: ${{ github.head_ref || github.ref_name }}
235+
BRANCH="${{ github.head_ref || github.ref_name }}"
236+
git pull --rebase origin "$BRANCH" || true
237+
git push origin HEAD:"$BRANCH" || echo "Push failed — performance report not updated"

0 commit comments

Comments
 (0)