Files
firmware/.github/workflows/membrowse-comment.yml
Austin 373bff393f Actions: Update/pin to Ubuntu 26.04 (#11941)
ubuntu-latest means we don't own the break (if it happens), always pin!
2026-10-11 20:46:20 +00:00

36 lines
1.1 KiB
YAML

name: Post MemBrowse Comment
on:
workflow_run:
workflows: [CI]
types: [completed]
permissions:
contents: read
pull-requests: write
jobs:
post-membrowse-comment:
# Skipped CI runs upload nothing, so the summary lookup would 404.
if: >
github.repository == 'meshtastic/firmware' &&
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion != 'cancelled' &&
github.event.workflow_run.conclusion != 'skipped'
continue-on-error: true
runs-on: ubuntu-26.04
steps:
# Only for gh to resolve the repo from the git remote; gh authenticates with GH_TOKEN.
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Post combined PR comment
uses: membrowse/membrowse-action/comment-action@v1
# gh posts the comment; without a token it fails and the action only logs a warning.
env:
GH_TOKEN: ${{ github.token }}
with:
api_key: ${{ secrets.MEMBROWSE_API_KEY }}
commit: ${{ github.event.workflow_run.head_sha }}