Search code examples
githubgithub-actions

How to configure titles for workflow runs?


I am trying to configure the name of GitHub Actions workflow runs.

With my ci.yaml file which is triggered on pull requests, it automatically contains the name of the commit that it runs as:

enter image description here

While for other types of triggers (scheduled or manually run), they only contain the name of the action, and there's no mention of the commit at which they were run at:

enter image description here

How can I customize it so that the commit is always visible?


Solution

  • You can add the run-name property to your workflow YAML:

    run-name: ${{ github.event.workflow_run.head_commit.message }}