mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
32 lines
887 B
YAML
32 lines
887 B
YAML
name: MemBrowse PR Comment
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [MemBrowse Memory Report]
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
comment:
|
|
runs-on: ubuntu-22.04
|
|
if: >
|
|
github.event.workflow_run.event == 'pull_request' &&
|
|
github.event.workflow_run.conclusion != 'cancelled' &&
|
|
github.event.workflow_run.conclusion != 'skipped'
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Post combined PR comment
|
|
if: ${{ env.MEMBROWSE_API_KEY != '' }}
|
|
uses: membrowse/membrowse-action/comment-action@v1
|
|
with:
|
|
api_key: ${{ secrets.MEMBROWSE_API_KEY }}
|
|
commit: ${{ github.event.workflow_run.head_sha }}
|
|
env:
|
|
MEMBROWSE_API_KEY: ${{ secrets.MEMBROWSE_API_KEY }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|