Skip to content

Matrix.os fails to match #25986

Answered by BrightRan
arky asked this question in Actions
Discussion options

You must be logged in to vote

@arky,

The problem is caused by the incorrect expressions you are using in the if conditional:

  1. You are using the incomplete expression (matrix.os) to access the value of os from the matrix context. The correct and complete expression should be “matrix.config.os”, and you can’t omit any node from the expression.
if: ${{ matrix.config.os == 'windows-latest' }}
  1. Both sides of the logical operator (&& or ||) must be complete conditional statements. You can’t omit any part from the conditional statements. The correct and complete conditional statements should be like as below.
if: ${{ matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'macos-latest' }}

In summary, the correct conf…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
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
3 participants