10

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?

2
  • I was googling for thins and this seems the only result, i see no answers nor comments, but wondering if you figured it out @Cristopher ? Commented Sep 17, 2023 at 5:01
  • Unfortunately no, I consider this a bug in GH as it's shown in the sidebar but not the breadcrumb. So fine for me right now and I wait till GH fixes this. Commented Sep 18, 2023 at 6:42

1 Answer 1

1

There doesn't seem to be a way to do this in Github at the moment. The closes that I could get was naming my job "-" so it wasn't so obtrusive.

jobs:
  build-and-deploy:
    name: '-'
    uses: ./.github/workflows/lambda-build-and-deploy.yml
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.