diff options
| author | hathach <[email protected]> | 2025-12-11 19:01:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-12-11 19:01:33 +0700 |
| commit | c7f7dc6ee1f4f56ccb86adabb2ca3f14c212e985 (patch) | |
| tree | 772c9f65652a4872e147e35fec5d4e856fef163a /.github/workflows/build.yml | |
| parent | b73003745fb18818574baa89367fd618c36ad8b0 (diff) | |
separate metric comment into its own workflow in order to work with forked PR
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d94a3b9b..ea7f5d74b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -130,12 +130,18 @@ jobs: cp metrics.md metrics_compare.md fi - - name: Post Code Metrics as PR Comment - if: github.event_name != 'push' - uses: marocchino/sticky-pull-request-comment@v2 + - name: Save PR number + if: github.event_name == 'pull_request' + run: echo ${{ github.event.number }} > pr_number.txt + + - name: Upload Metrics Comment Artifact + if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v5 with: - header: code-metrics - path: metrics_compare.md + name: metrics-comment + path: | + metrics_compare.md + pr_number.txt # --------------------------------------- # Build Make/CMake on Windows/MacOS |
