Range(n) equivalent in GitHub Actions

Hi folks!
Basically, I want to replace the value of test_group with range(1, strategy.max-parallel + 1). Is there a way to do that programmatically?

      max-parallel: 4
        python-version: [3.8]
        operating-system: [ubuntu-latest]
        # Next line should be range(1, max-parallel + 1)
        test_group: [1, 2, 3, 4]

:wave: Hey @ma-sadeghi,

There’s not a specific workflow expression to generate this range, but you could use a job before this one to calculate that range and generate the matrix. Then your second job could reference this job with a job output and fromJSON.

For an example, see Context and expression syntax for GitHub Actions - GitHub Docs