git_diff_status_show.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (c) 2006-2023, RT-Thread Development Team
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # Change Logs:
  7. # Date Author Notes
  8. # 2025-05-15 Supper Thomas show the PR size
  9. #
  10. name: PR status
  11. # 这个ci主要用来显示当前的PR对于master节点上的增加的code size有多大
  12. on:
  13. pull_request:
  14. branches:
  15. - master
  16. permissions:
  17. contents: read # to fetch code (actions/checkout)
  18. jobs:
  19. build:
  20. runs-on: ubuntu-24.04
  21. name: PR status show
  22. steps:
  23. - uses: actions/checkout@main
  24. with:
  25. fetch-depth: 0
  26. - name: Set up Python
  27. uses: actions/setup-python@main
  28. with:
  29. python-version: 3.8
  30. - name: fetch origin
  31. shell: bash
  32. run: |
  33. git config --global http.postBuffer 524288000
  34. git remote -v
  35. git fetch origin
  36. git branch
  37. git branch -a
  38. - name: PR status show
  39. if: ${{ success() }}
  40. shell: bash
  41. run: |
  42. python tools/ci/git_diff_status_show.py origin/master