How to avoid jobs name nesting with GitHub Actions reusable workflows?

347 Views Asked by At

I have a GH workflow with multiple jobs that are executed after each. These jobs are defined in other files.

name: pipeline

on:
  workflow_dispatch:
jobs:
  Init:
    uses: ./.github/workflows/init.yml
    secrets: inherit
    with:
      ...
  Build:
    needs: Init
    uses: ./.github/workflows/build.yml
    secrets: inherit
    with:
      ...

init.yml


on:
  workflow_dispatch:
  workflow_call:
    inputs:
      ...
    outputs:
      ...
jobs:
  Init:
    runs-on: self-hosted
    outputs:
      ...
    steps:
      - uses: actions/checkout@v3

GitHub displays the job name of the original workflow file and the job name of the reused workflow file nested into each other in the title. I would like to avoid this. In the navigation bar on the left, the nested job name however is not shown.

enter image description here

How can I avoid this name duplication and show only one job name?

0

There are 0 best solutions below