gitea icon indicating copy to clipboard operation
gitea copied to clipboard

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

Open TheBrokenRail opened this issue 2 years ago • 3 comments

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

TheBrokenRail avatar Nov 24 '23 23:11 TheBrokenRail

Related to #25179

wolfogre avatar Nov 27 '23 04:11 wolfogre

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

lunny avatar Apr 04 '24 04:04 lunny

Sorry to ping this issue, couldn't find a changelog for act_runner.

Is this available in any version? Gitea 1.22.4 / act_runner 0.2.11, I still see non interpolated text in the job names:

2024-12-07_10-25

kroltan avatar Dec 07 '24 13:12 kroltan