Skip to content

What is the correct if condition syntax for checking matrix.os version? #25554

Answered by Siedlerchr
Siedlerchr asked this question in Actions
Discussion options

You must be logged in to vote

I figured it out and now it works:

- if: matrix.os == 'macOS-10.14'
      run: |
        ionic cordova platform add ios
        ionic cordova build ios
  • if: matrix.os == 'ubuntu-latest'
    run: |
    ionic cordova platform add android
    ionic cordova build android

Replies: 8 comments 1 reply

Comment options

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

You must be logged in to vote
1 reply
@zekrom-vale
Comment options

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants