Skip to content

Setting variables based OS architecture #25949

Answered by BrightRan
arky asked this question in Actions
Discussion options

You must be logged in to vote

@arky,

According to the configurations of the matrix in your workflow, the ‘os’ and the ‘arch’ are the same level options in the matrix. The ‘arch’ is not a child option of the ‘os’.

So, if you want to access the value of the ‘arch’ option, the correct expression syntax should be ‘matrix.config.arch’, not ‘matrix.config.os.arch’.

Similarly, using ‘matrix.config.os’ to access the value of the ‘os’ option, and ‘matrix.config.name’ to access the ‘name’.
Below is an example as reference:

GitHub

ForksForTest/TestMatrix

Contribute to ForksForTest/TestMatrix development by creating an account on GitHub.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants