If condition in matrix

I’m trying to reproduce this behavior from .travis.yml using github actions
if: not (type = "pull_request" and fork = "true")

I find that jobs.<job_id>.if didn’t support values from matrix.
In this thread: Feature request and use case example to allow `matrix` in `if`s I found recommendation to use dynamic matrix
but may be there are simple way to achieve same as Travis CI?


As far as I know, the dynamic matrix is the only available way you can use for your case. We seems have no other easy and available methods to to do this.

I recommend that you can directly share a feature request in the Feedback form for GitHub. That will allow you to directly interact with the appropriate engineering team, and make it more convenient for the engineering team to collect and categorize your suggestions.

You also can keep eyes on the “GitHub public roadmap” repository where you can learn about what new features the appropriate engineering teams are working on, what stage the features are in, and when the teams expect to bring the features to users.