github: display original commit title for status workflows

GitHub Actions displays the workflow name instead of the commit title
when a workflow is triggered by `workflow_run`. This makes it difficult
to identify the commit associated with a status workflow run in the UI.

Added the `run-name` attribute to all `status-*.yml` files, dynamically
setting it to the `display_title` of the original workflow run. This
restores visibility of the commit message or PR title in the Actions UI.
This commit is contained in:
Powei Feng
2026-04-23 12:43:48 -07:00
parent d00691c727
commit e45e9c40fe
6 changed files with 6 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
name: Android
run-name: ${{ github.event.workflow_run.display_title }}
on:
workflow_run:

View File

@@ -1,4 +1,5 @@
name: iOS
run-name: ${{ github.event.workflow_run.display_title }}
on:
workflow_run:

View File

@@ -1,4 +1,5 @@
name: Linux
run-name: ${{ github.event.workflow_run.display_title }}
on:
workflow_run:

View File

@@ -1,4 +1,5 @@
name: macOS
run-name: ${{ github.event.workflow_run.display_title }}
on:
workflow_run:

View File

@@ -1,4 +1,5 @@
name: Web
run-name: ${{ github.event.workflow_run.display_title }}
on:
workflow_run:

View File

@@ -1,4 +1,5 @@
name: Windows
run-name: ${{ github.event.workflow_run.display_title }}
on:
workflow_run: