mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-15 20:14:54 +00:00
fix secret issue in membrowse-comment
This commit is contained in:
6
.github/workflows/membrowse-comment.yml
vendored
6
.github/workflows/membrowse-comment.yml
vendored
@ -9,9 +9,10 @@ on:
|
||||
jobs:
|
||||
post-comment:
|
||||
runs-on: ubuntu-latest
|
||||
# Run the comment job even if some of the builds fail
|
||||
if: >
|
||||
github.event.workflow_run.event == 'pull_request' &&
|
||||
github.event.workflow_run.conclusion == 'success'
|
||||
github.event.workflow_run.conclusion != 'cancelled'
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
@ -21,11 +22,12 @@ jobs:
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Post Membrowse PR comment
|
||||
if: ${{ secrets.MEMBROWSE_API_KEY != '' }}
|
||||
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 }}
|
||||
comment_template: .github/membrowse_pr_message.j2
|
||||
env:
|
||||
MEMBROWSE_API_KEY: ${{ secrets.MEMBROWSE_API_KEY }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user