Skip to content

[GitHub Actions (new)] [BUG] Unable to create environment variables based matrix #27139

Answered by webknjaz
webknjaz asked this question in Actions
Discussion options

You must be logged in to vote

Workaround is to explicitly apply the env factor on a job level:

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        python-version:
        - 3.7
        os:
        - ubuntu-18.04
        env:
        - TOXENV: python,check-docs,build-docs
- TOXENV: build-dists,pre-commit-ci
  steps:
  - ...
  - run: |
      some-command --with-access-to=env
    env: ${{matrix.env }}

Replies: 8 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
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
4 participants