Feature Request: Job Context field for Full Job Matrix Name #16614
Unanswered
leighmcculloch
asked this question in
Actions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be really useful to have a single field in the
job
context that matches the fully job name when a job is run with a strategy that uses a matrix.For example, if I have a single job
cargo
, that has a few matrix values such as:It would be really useful if there was a
job.name
that would give me the names of the job as shown in the GitHub UI:There are several uses of having a
job.name
field.For logging or reporting upstream in systems where reports are pushed.
For use as cache keys in action caches that need to be unique for the full matrix.
There are some hacky ways to get the matrix into a single string. This is one way:
Which generates a string like this:
It's imperfect because objects stringify to
Object
and have to be manually expanded.Beta Was this translation helpful? Give feedback.
All reactions