go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.3k stars 5.51k forks source link

(CI) Can't use matrix variable in `jobs.<job_id>.name` #28207

Open TheBrokenRail opened 1 year ago

TheBrokenRail commented 1 year ago

Description

I'm using a matrix in my Gitea Actions workflow, and I'm using matrix variables in the job's name, so it looks pretty in the UI. But Gitea doesn't substitute the variables.

jobs:
    build:
        strategy:
            fail-fast: false
            matrix:
                mode:
                  - Client
                  - Server
                arch:
                  - AMD64
                  - ARM64
                  - ARMHF
        name: ${{ matrix.mode }} (${{ matrix.arch }})

Here's how I expected to work: https://futurestud.io/tutorials/github-actions-customize-the-job-name

Gitea Version

v1.21.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Screenshot from 2023-11-24 18-43-28

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker

Database

None

wolfogre commented 1 year ago

Related to #25179

lunny commented 7 months ago

Should be fixed by https://gitea.com/gitea/act/pulls/106