Use matrix variable in action step name

Hi there,

I want to use the a matrix value within the name of a step.
Something like this:

jobs:
  build:
    runs-on: ubuntu-latest
    container:
      image: catthehacker/ubuntu:act-latest
    strategy:
      matrix:
        include:
          - docker-id: "example-a"
          - docker-id: "example-b"
    steps:
      - name: Build and push Docker image ${{ matrix.docker-id }}
        ...

I can use the value within the step, but I can’t use it within the name. Do I need to change something or is it just not supported yet?

Thanks!

1 Like