title: Setting parameter value dynamically for automatic pipelines
body: <p>If I create a parameter, I can set its value when I run a pipeline manually. But when the pipeline runs automatically, it uses the default value. When a pipeline runs automatically (say in response to pushing to a repo) is there any way to pass it the value of a parameter?</p>
  <p>This is the yaml file I was playing around with. The goal is to be able to control which tests get run in the pipeline.</p>
  <pre><code>parameters:
    - name: testFiles
      type: string
      default: cypress/integration/first.spec.js
  
  trigger:
    - azure-test
  
  pool:
    vmImage: ubuntu-latest
  
  steps:
    - task: NodeTool@0
      inputs:
        versionSpec: &quot;10.x&quot;
      displayName: &quot;Install Node.js&quot;
  
    - script: npm install
      displayName: &quot;npm install&quot;
  
    - script: npx cypress run --record --key [record key removed] --spec ${{ parameters.testFiles }}
      displayName: &quot;run cypress&quot;
  </code></pre>