summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMichael Rogov Papernov <[email protected]>2026-02-12 14:39:12 +0000
committerMichael Rogov Papernov <[email protected]>2026-03-10 07:10:53 +0000
commit83363afa82669e02d5ad264c4e681a63df4b1a91 (patch)
treee9f76c8a18802b2f1299b1453f570b8015edabb9 /.github/workflows
parentda307fa85b4002c875284bb82d7db1ca1bc7347d (diff)
set new membrowse comment github workflow with comment message
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/membrowse-comment.yml19
1 files changed, 6 insertions, 13 deletions
diff --git a/.github/workflows/membrowse-comment.yml b/.github/workflows/membrowse-comment.yml
index a99c9db51..368a52638 100644
--- a/.github/workflows/membrowse-comment.yml
+++ b/.github/workflows/membrowse-comment.yml
@@ -11,28 +11,21 @@ jobs:
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
- github.event.workflow_run.conclusion != 'cancelled'
+ github.event.workflow_run.conclusion == 'success'
permissions:
+ contents: read
actions: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- - name: Download Artifacts
- id: download
- uses: actions/download-artifact@v5
- with:
- run-id: ${{ github.event.workflow_run.id }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
- name: membrowse-comment
- path: reports
- continue-on-error: true
-
- name: Post Membrowse PR comment
- if: steps.download.outcome == 'success'
+ if: ${{ secrets.MEMBROWSE_API_KEY != '' }}
uses: membrowse/membrowse-action/comment-action@v1
with:
- json_files: 'reports/*.json'
+ api_key: ${{ secrets.MEMBROWSE_API_KEY }}
+ commit: ${{ github.event.workflow_run.head_sha }}
+ comment_template: .github/membrowse_pr_message.j2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}