title: How to refer environment variable inside GitHub workflow?
body: <p>I'm trying to read the the GitHub environment variable inside the request json payload while making the curl request but somewhat these variables are not resolving and it gives an error the values I'm trying to read are KEY_VAULT and ACR_PATH:SNAPSHOT_VERSION inside the flow create container web. I've attached the GitHub workflow sample below.</p>
  <pre><code>name: Pull Request
  
  on:
    pull_request:
      types: [review_requested]
  
  env:
   
    KEY_VAULT: &quot;some vault&quot;
    SNAPSHOT_VERSION: ${{ format('{0}-SNAPSHOT', github.event.number) }}
    GITHUB_ISSUE_NUMBER: ${{ github.event.number }}
    GITHUB_REPO: ${{ github.event.repository.name }}
    DEPLOYMENT_NOTIFICATION_URL_TOKEN: ${{ secrets.SOME_TOKEN }}
    DEPLOYMENT_URL_TOKEN: 123
    ENVIRONMENT: sandbox
  jobs:
    build:
      runs-on: ubuntu-latest
  
      steps:
        - uses: actions/checkout@v2
          with:
            fetch-depth: 0
  
        - name: Docker login
          #if: steps.pr-label.outputs.result == 'true'
          uses: azure/docker-login@v1
          with:
            login-server: acr-login.com
            username: user
            password: pwd
  
        - name: Publish Snapshot To ACR
          #if: steps.pr-label.outputs.result == 'true'
          run: |
            echo steps.pr-label.outputs.result
            echo Publishing to $ACR_PATH:$SNAPSHOT_VERSION
            docker build . -t $ACR_PATH:$SNAPSHOT_VERSION
            docker push $ACR_PATH:$SNAPSHOT_VERSION
  
        - name: Create Container Web
            #if: steps.pr-label.outputs.result == 'true'
          run: |
              AUTH_HEADER=&quot;Authorization: token $DEPLOYMENT_URL_TOKEN&quot;
              CONTAINER_WEB_NAME=&quot;CONATINER&quot;
              PROJECT_NAME=&quot;tirumalesh-automate&quot;
              REGION=&quot;US&quot;
           URL=&quot;https://abcd.com/$REGION/$PROJECT_NAME/container-web/$CONTAINER_WEB_NAME&quot;
              PAYLOAD='{
                                   &quot;spec&quot;: {
                                     &quot;image&quot;: &quot;${{env.ACR_PATH}}:${{env.SNAPSHOT_VERSION}}&quot;,
                                     &quot;secrets&quot;: {
                                       &quot;key_vaults&quot;: [
                                         {
                                           &quot;name&quot;: &quot;${{env.KEY_VAULT}}&quot;,
                                           &quot;secrets&quot;: [
                                             {
                                               &quot;name&quot;: &quot;mysql-pwd&quot;,
                                               &quot;environment_variable&quot;: &quot;mysql_pwd&quot;
                                             },
                                             
                                           ]
                                         }
                                       ],
                                     },
                                   }
                                   }'
              curl --location --request PUT 'https://abcd/us/projects/tirumalesh-automate/resources/container-web/configuration-service' \
              --header &quot;$AUTH_HEADER&quot; \
              --header 'Content-Type: application/json' \
                          --data-raw &quot;$PAYLOAD&quot;
  </code></pre>