title: Use an array in workflow level env variable?
body: <p>You can set env vars available across the entire workflow e.g. <a href="https://stackoverflow.com/questions/63467662/github-action-define-workflow-level-environment-variable-between-jobs">like in this post</a>.</p>
  <p>(From solution on linked post)</p>
  <pre><code>name: Git Pull Request Workflow
  
  on:
    workflow_dispatch:
    pull_request:
      branches:
        - master
  
  env:
    one: 1
    two: zwei
    three: tres
  
  jobs:
    first-job:
      runs-on: ubuntu-latest
      steps:
      - run: |
          echo &quot;${{ env.one }}&quot;
          echo &quot;${{ env.two }}&quot;
          echo &quot;${{ env.three }}&quot;
  </code></pre>
  <p>I have a workflow that uses a matrix strategy and I have to update it in each job if I ever change it. I tried to make it a global variable like above:</p>
  <pre><code>name: Model Multipliers
  on:
    push:
      branches:
        - main
      
  env:
    FRUIT: [&quot;Apple&quot;, &quot;Pear&quot;, &quot;Banana&quot;, &quot;Orange&quot;]
  
  jobs:
    ssql-get:
      runs-on: ubuntu-latest
      strategy:
        matrix:
          FRUIT: ${{ env.FRUIT }}
      name: Get data
      steps:
        - name: Checkout cum-rev repo
  </code></pre>
  <p>But this gives error:</p>
  <blockquote>
  <p>The workflow is not valid. .github/workflows/main.yml (Line: 12, Col:
  9): A sequence was not expected .github/workflows/main.yml (Line: 19,
  Col: 15): Unrecognized named-value: 'env'. Located at position 1
  within expression: env.FRUIT</p>
  </blockquote>
  <p>Is what I'm trying to do possible by any other means?</p>