File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments