Workflow name variable nested expansion

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

As a follow-up to gitlab-runner#1809 (closed)

workflow:
  name: "$PIPELINE_NAME"
  rules:
    - if: '$CI_PIPELINE_SOURCE == "schedule"'
      variables:
        PIPELINE_NAME: 'Automatic AMI Build ${CI_PIPELINE_CREATED_AT}'

The Pipeline results in a name of Automatic AMI Build

Screenshot_2023-03-17_at_9.31.49_AM

but if you look at any of the jobs you can see PIPELINE_NAME is actually set properly:

HOSTNAME=runner-iq1waznr-project-1734-concurrent-0
CI_BUILD_TOKEN=[MASKED]
CI_DEPENDENCY_PROXY_PASSWORD=[MASKED]
CI_COMMIT_BRANCH=main
CI_PIPELINE_CREATED_AT=2023-03-17T13:03:59Z            <-- looks correct
CI_PROJECT_VISIBILITY=public
Edited by 🤖 GitLab Bot 🤖