diff options
| author | Supper Thomas <[email protected]> | 2025-05-15 19:53:00 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-05-16 08:54:49 +0800 |
| commit | bf96f99d6bc3dfa3c7c9230d1b8e4415c02f19f0 (patch) | |
| tree | e9ec7407771c70f4d518ba3040c2cbde0437c5ba /.github | |
| parent | 50998f4e43501f187fd956ded76d9eabb299fa94 (diff) | |
[action/ci] show the PR status for Pull request
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/git_diff_status_show.yml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/git_diff_status_show.yml b/.github/workflows/git_diff_status_show.yml new file mode 100644 index 0000000000..f63cafed26 --- /dev/null +++ b/.github/workflows/git_diff_status_show.yml @@ -0,0 +1,50 @@ +# +# Copyright (c) 2006-2023, RT-Thread Development Team +# +# SPDX-License-Identifier: Apache-2.0 +# +# Change Logs: +# Date Author Notes +# 2025-05-15 Supper Thomas show the PR size +# + +name: PR status + +# 这个ci主要用来显示当前的PR对于master节点上的增加的code size有多大 +on: + pull_request: + branches: + - master + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + build: + runs-on: ubuntu-24.04 + name: PR status show + + steps: + - uses: actions/checkout@main + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@main + with: + python-version: 3.8 + + - name: fetch origin + shell: bash + run: | + git config --global http.postBuffer 524288000 + git remote -v + git fetch origin + git branch + git branch -a + + - name: PR status show + if: ${{ success() }} + shell: bash + run: | + python tools/ci/git_diff_status_show.py origin/master + |
